aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-05-28 05:24:51 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-05-28 05:24:51 +0200
commit407c8e7ba58755a2f0998e46b594d89aff4ec7d6 (patch)
treed8c7a1a3051bd3a9307bc8309c2854c289c56b68
parentf2f4bb7e63d91a59b8252db64b553d9aaa6ba8a7 (diff)
downloadblogc-407c8e7ba58755a2f0998e46b594d89aff4ec7d6.tar.gz
blogc-407c8e7ba58755a2f0998e46b594d89aff4ec7d6.tar.bz2
blogc-407c8e7ba58755a2f0998e46b594d89aff4ec7d6.zip
blogc: fix goto statements
-rw-r--r--src/blogc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blogc.c b/src/blogc.c
index 329f4b1..cdc6aeb 100644
--- a/src/blogc.c
+++ b/src/blogc.c
@@ -229,14 +229,14 @@ main(int argc, char **argv)
else {
printf("%s\n", val);
}
- goto cleanup3;
+ goto cleanup2;
}
if (template == NULL) {
blogc_print_usage();
fprintf(stderr, "blogc: error: argument -t is required when rendering content\n");
rv = 2;
- goto cleanup3;
+ goto cleanup2;
}
sb_slist_t* l = blogc_template_parse_from_file(template, &err);