mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-14 19:55:12 +01:00
[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:
parent
19ef26c9c5
commit
015df7e369
@ -1864,7 +1864,7 @@ main (int argc, char **argv)
|
|||||||
|
|
||||||
|
|
||||||
if (!(table = parse_gschema_files (schema_files, &error)) ||
|
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)))
|
(!dry_run && !write_to_file (table, target, &error)))
|
||||||
{
|
{
|
||||||
fprintf (stderr, "%s\n", error->message);
|
fprintf (stderr, "%s\n", error->message);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user