浏览代码

userblacklist: initialize vars to avoid compiler warnings

Daniel-Constantin Mierla 10 年之前
父节点
当前提交
c7a8b95e02
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      modules/userblacklist/userblacklist.c

+ 3 - 3
modules/userblacklist/userblacklist.c

@@ -695,9 +695,9 @@ static void dump_dtrie_mi(const struct dtrie_node_t *root,
 	const unsigned int branches, char *prefix, int *length, struct mi_root *reply)
 {
 	struct mi_node *crt_node;
-        unsigned int i;
-        char digit, *val;
-	int val_len;
+	unsigned int i;
+	char digit, *val = NULL;
+	int val_len = 0;
 
 	/* Sanity check - should not reach here anyway */
 	if (NULL == root) {