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!
This commit is contained in:
aleos89 2016-11-15 21:54:44 -05:00
parent 5332d7f0e7
commit cb279a7243

View File

@ -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;