libpamtest: Make sure reply is initialized
authorAndreas Schneider <asn@samba.org>
Thu, 10 Dec 2015 16:10:55 +0000 (17:10 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 10 Dec 2015 21:54:16 +0000 (22:54 +0100)
Fixes a build warning

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
src/libpamtest.c

index 612cdc1cb97389c2b3819c8d13825e91260d5832..98192ce30013995e05f51c233fb0afa4d094c180 100644 (file)
@@ -198,7 +198,7 @@ static int pamtest_simple_conv(int num_msg,
 {
        int i, ri;
        int ret;
-       struct pam_response *reply;
+       struct pam_response *reply = NULL;
        const char *prompt;
        struct pamtest_conv_ctx *cctx = \
                                    (struct pamtest_conv_ctx *) appdata_ptr;