summaryrefslogtreecommitdiff
path: root/src/parse/properties
diff options
context:
space:
mode:
authorVincent Sanders <vincent.sanders@collabora.co.uk>2014-01-24 11:32:58 +0000
committerVincent Sanders <vincent.sanders@collabora.co.uk>2014-01-24 11:32:58 +0000
commitfe9ef09367c215eca536ec06a7a72b7de4805b8f (patch)
treed0099dd97c4a058e3152a4d1f3afb065adde0ac9 /src/parse/properties
parentde948c17e6d2f2f8fd0f11ec64747521f7daf389 (diff)
downloadlibcss-fe9ef09367c215eca536ec06a7a72b7de4805b8f.tar.gz
libcss-fe9ef09367c215eca536ec06a7a72b7de4805b8f.tar.bz2
ensure generation tool exits if it cannot open its output file. (coverity 1127066)
Diffstat (limited to 'src/parse/properties')
-rw-r--r--src/parse/properties/css_property_parser_gen.c1
1 files changed, 1 insertions, 0 deletions
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 {