summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile7
-rw-r--r--src/parse/properties/css_property_parser_gen.c1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 0584f42..520522d 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,3 +1,10 @@
+#
+# Makefile for libcss
+#
+# Copyright 2014 Vincent Sanders <vince@netsurf-browser.org>
+#
+# Released under the MIT License (see COPYING file)
+
# Sources
DIR_SOURCES := stylesheet.c
diff --git a/src/parse/properties/css_property_parser_gen.c b/src/parse/properties/css_property_parser_gen.c
index bae2d0b..9c4be2a 100644
--- a/src/parse/properties/css_property_parser_gen.c
+++ b/src/parse/properties/css_property_parser_gen.c
@@ -500,6 +500,7 @@ int main(int argc, char **argv)
outputf = fopen(argv[2], "w");
if (outputf == NULL) {
perror("unable to open file");
+ return 2; /* exit on output file output error */
}
descriptor = strdup(argv[3]);
} else {