Skip to content

Commit 5a1fdd6

Browse files
apply fix
1 parent c07aabc commit 5a1fdd6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

code/logic/noshell.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,10 @@ fossil_bluecrab_noshell_error_t fossil_bluecrab_noshell_find(
346346

347347
char line[1024];
348348
while (fgets(line, sizeof(line), fp)) {
349-
// Skip non-FSON lines (must start with '{' or '[' after whitespace)
349+
// Skip header lines
350+
if (line[0] == '#')
351+
continue;
352+
// Only consider FSON-formatted lines (start with '{' or '[' after whitespace)
350353
char *p = line;
351354
while (isspace((unsigned char)*p)) p++;
352355
if (*p != '{' && *p != '[')

0 commit comments

Comments
 (0)