From 47713d648740cf2d11436ac6bd768c23cf89ca7f Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 3 May 2018 14:28:02 +1200 Subject: [PATCH] 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 --- source3/modules/vfs_virusfilter_fsav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);