From: Andrew Bartlett Date: Thu, 3 May 2018 02:28:02 +0000 (+1200) Subject: vfs_virusfilter_fsav: Initialize stack pointers per README.Coding X-Git-Tag: ldb-1.4.0~437 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47713d648740cf2d11436ac6bd768c23cf89ca7f;p=thirdparty%2Fsamba.git vfs_virusfilter_fsav: Initialize stack pointers per README.Coding This allows a build with --address-sanitizer Signed-off-by: Andrew Bartlett Reviewed-by: Alexander Bokovoy --- diff --git a/source3/modules/vfs_virusfilter_fsav.c b/source3/modules/vfs_virusfilter_fsav.c index 2b874d7db43..bd22ee58bc4 100644 --- a/source3/modules/vfs_virusfilter_fsav.c +++ b/source3/modules/vfs_virusfilter_fsav.c @@ -307,7 +307,7 @@ static virusfilter_result virusfilter_fsav_scan( virusfilter_result result = VIRUSFILTER_RESULT_CLEAN; char *report = NULL; char *reply = NULL; - char *reply_token, *reply_saveptr; + char *reply_token = NULL, *reply_saveptr = NULL; bool ok; DBG_INFO("Scanning file: %s/%s\n", cwd_fname, fname);