aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-05-07 22:35:18 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-05-07 22:35:18 -0300
commitb24efa3885637d953892ccf718662aa693eaa879 (patch)
tree76e5f074021f59194535a79ea348f711c8db68cd /src/main.c
parent28b02d920aa9347f25bc28f5989919174d9f60a9 (diff)
downloadblogc-b24efa3885637d953892ccf718662aa693eaa879.tar.gz
blogc-b24efa3885637d953892ccf718662aa693eaa879.tar.bz2
blogc-b24efa3885637d953892ccf718662aa693eaa879.zip
content-parser: more random stuff
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index c112c4f..be18050 100644
--- a/src/main.c
+++ b/src/main.c
@@ -230,7 +230,8 @@ main(int argc, char **argv)
}
}
- fprintf(fp, "%s", out);
+ if (out != NULL)
+ fprintf(fp, "%s", out);
if (!write_to_stdout)
fclose(fp);