فهرست منبع

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!

aleos89 8 سال پیش
والد
کامیت
cb279a7243
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/map/script.c

+ 1 - 1
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;