projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix null string test
[project/uci.git]
/
file.c
diff --git
a/file.c
b/file.c
index
8428462
..
da72bde
100644
(file)
--- a/
file.c
+++ b/
file.c
@@
-45,7
+45,7
@@
static void uci_getln(struct uci_context *ctx, int offset)
p[ofs] = 0;
p = fgets(p, pctx->bufsz - ofs, pctx->file);
- if (!p || !
p[ofs]
)
+ if (!p || !
*p
)
return;
ofs += strlen(p);