Pārlūkot izejas kodu

- "strlen(flat_escape) > 1" fix

Tomas Mandys 19 gadi atpakaļ
vecāks
revīzija
e212931846
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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;
 		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");
 		LOG(L_ERR, "flatstore:mod_init: Escape char has to be max. one character\n");
 		return -1;
 		return -1;
 	}
 	}