mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove 'string marker after running out of strings' warning
This warning is unnecessarily scary - we had a problem with parsing multiple strings on the same line, but it should be all solved, and while it does mean that people may have old incorrect git save files with empty strings, scaring users about it isn't going to help. And with the warning removed, we can just remove the whole test for an empty string, because the normal code sequence handles that case just fine. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
9815024199
commit
cdfcb7f896
1 changed files with 0 additions and 4 deletions
|
@ -348,10 +348,6 @@ static char *pop_cstring(struct membuffer *str, const char *err)
|
||||||
report_error("git-load: string marker without any strings ('%s')", err);
|
report_error("git-load: string marker without any strings ('%s')", err);
|
||||||
return strdup("");
|
return strdup("");
|
||||||
}
|
}
|
||||||
if (!str->len) {
|
|
||||||
report_error("git-load: string marker after running out of strings ('%s')", err);
|
|
||||||
return strdup("");
|
|
||||||
}
|
|
||||||
len = strlen(mb_cstring(str)) + 1;
|
len = strlen(mb_cstring(str)) + 1;
|
||||||
return remove_from_front(str, len);
|
return remove_from_front(str, len);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue