Browse Source

cfgutils: fix warning about uninitialized variable

Henning Westerholt 7 năm trước cách đây
mục cha
commit
b07d4d0e5c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/modules/cfgutils/cfgutils.c

+ 1 - 1
src/modules/cfgutils/cfgutils.c

@@ -208,7 +208,7 @@ struct module_exports exports = {
 /**************************** fixup functions ******************************/
 static int fixup_prob( void** param, int param_no)
 {
-	unsigned int myint;
+	unsigned int myint = 1000; /* stop if str2int later fail */
 	str param_str;
 
 	/* we only fix the parameter #1 */