From cb279a724341d27700e09b92eee766df77de0ede Mon Sep 17 00:00:00 2001 From: aleos89 Date: Tue, 15 Nov 2016 21:54:44 -0500 Subject: [PATCH] Resolved an uninitialized variable (fixes #1717) * Follow up to ade1b17. * Corrects the countitem script command having an uninitialized variable warning during compile. Thanks to @hnomkeng! --- src/map/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/script.c b/src/map/script.c index c04fe153fd..56a23334b6 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -6475,7 +6475,7 @@ BUILDIN_FUNC(countitem) uint16 size, count = 0; struct item *items; TBL_PC *sd = NULL; - struct s_storage *gstor; + struct s_storage *gstor = NULL; if( command[strlen(command)-1] == '2' ) { i = 1;