Browse Source

ncd: modules: value: remove uninitialized variable warning

ambrop7 13 years ago
parent
commit
51a6b7ecf1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ncd/modules/value.c

+ 1 - 1
ncd/modules/value.c

@@ -1015,7 +1015,7 @@ static int func_getvar2 (void *vo, NCD_string_id_t name, NCDValMem *mem, NCDValR
         }
     }
     else if (name == strings[STRING_LENGTH].id) {
-        size_t len;
+        size_t len = 0; // to remove warning
         switch (v->type) {
             case NCDVAL_LIST:
                 len = value_list_len(v);