[gschema-compile] fix segfault

If files are passed on the command line and we don't set override_files
at all, don't try to read from the array.
This commit is contained in:
Owen Taylor 2010-07-28 15:15:57 -04:00 committed by Colin Walters
parent 19ef26c9c5
commit 015df7e369

View File

@ -1864,7 +1864,7 @@ main (int argc, char **argv)
if (!(table = parse_gschema_files (schema_files, &error)) ||
!set_overrides (table, override_files, &error) ||
(override_files != NULL && !set_overrides (table, override_files, &error)) ||
(!dry_run && !write_to_file (table, target, &error)))
{
fprintf (stderr, "%s\n", error->message);