s3:modules: Initialize pointers in vfs_virusfilter
authorAndreas Schneider <asn@samba.org>
Wed, 16 May 2018 10:11:30 +0000 (12:11 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 16 May 2018 19:30:22 +0000 (21:30 +0200)
Found by Coverity.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/modules/vfs_virusfilter_sophos.c

index 72051cd64a28cc054c4c19ae1cbd6ccf23ad7903..82f9cbce7494d00cdb82eeb9e51bea305b82a3f3 100644 (file)
@@ -234,7 +234,7 @@ static virusfilter_result virusfilter_sophos_scan(
        virusfilter_result result = VIRUSFILTER_RESULT_ERROR;
        char *report = NULL;
        char *reply = NULL;
-       char *reply_token, *reply_saveptr;
+       char *reply_token = NULL, *reply_saveptr = NULL;
        int ret;
        bool ok;