From 054dd4e5a2bb1f74ff09c394c3a844bfa94e991d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 23 Jan 2008 01:08:19 +0100 Subject: [PATCH] fix null string test --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file.c b/file.c index 8428462..da72bde 100644 --- 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); -- 2.25.1