diff --git a/zkey/properties.c b/zkey/properties.c index 09d8c014..4da5de84 100644 --- a/zkey/properties.c +++ b/zkey/properties.c @@ -386,6 +386,8 @@ int properties_load(struct properties *properties, const char *filename, while (fgets(line, sizeof(line), fp) != NULL) { len = strlen(line); + if (len == 0) + continue; if (line[len - 1] == '\n') line[len - 1] = '\0'; if (line[0] == '#')