浏览代码

- "strlen(flat_escape) > 1" fix

Tomas Mandys 19 年之前
父节点
当前提交
e212931846
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/db_flatstore/flatstore_mod.c

+ 1 - 1
modules/db_flatstore/flatstore_mod.c

@@ -130,7 +130,7 @@ static int mod_init(void)
 		return -1;
 	}
 
-	if (strlen(flat_escape) > 0) {
+	if (strlen(flat_escape) > 1) {
 		LOG(L_ERR, "flatstore:mod_init: Escape char has to be max. one character\n");
 		return -1;
 	}