summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2016-04-03 13:18:16 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-04-03 13:18:16 +0200
commitdfe3e257cc99ac6f6863ca4d3cd23a40c8f80a5b (patch)
treefa14c66a4c31b7f59bee30e882ec17a57bb8771e
parentec7a6e018c7bddd3645f770d0350311653212963 (diff)
fix warning: return early, fixes bogus end NULL dereference warning
-rw-r--r--sfeed.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sfeed.c b/sfeed.c
index df00c38..96fb3f6 100644
--- a/sfeed.c
+++ b/sfeed.c
@@ -498,6 +498,8 @@ time:
/* parse regular time, see above */
vi = 3;
goto time;
+ } else {
+ return -1;
}
/* invalid range */