Sfoglia il codice sorgente

- "strlen(flat_escape) > 1" fix

Tomas Mandys 19 anni fa
parent
commit
e212931846
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;
 	}