From fe9ef09367c215eca536ec06a7a72b7de4805b8f Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 24 Jan 2014 11:32:58 +0000 Subject: ensure generation tool exits if it cannot open its output file. (coverity 1127066) --- src/parse/properties/css_property_parser_gen.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/parse/properties') 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 { -- cgit v1.2.3