]> git.refcnt.org Git - colorize.git/commitdiff
Add assertion in process_file_option
authorSteven Schubiger <stsc@refcnt.org>
Thu, 22 Aug 2013 13:25:53 +0000 (15:25 +0200)
committerSteven Schubiger <stsc@refcnt.org>
Thu, 22 Aug 2013 13:25:53 +0000 (15:25 +0200)
colorize.c

index cd01f4af3995bfacbbee997b391aabffd347451f..f563f70b58e57e026127b68377a11d12a7cf5b81 100644 (file)
@@ -598,6 +598,7 @@ process_file_option (const char *file_string, const char **file, FILE **stream)
       }
 
     assert (*stream);
+    assert (*file);
 }
 
 #define MERGE_PRINT_LINE(part_line, line, flags, check_eof) do { \