소스 검색

- "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;
 	}