If the target directory is not explicitly set then output to the source
directory. Closes bug #616311 reported by Bastien Nocera.
}
srcdir = argv[1];
- if (targetdir)
- target = g_build_filename (targetdir, "gschemas.compiled", NULL);
- else
- target = "gschemas.compiled";
+
+ if (targetdir == NULL)
+ targetdir = srcdir;
+
+ target = g_build_filename (targetdir, "gschemas.compiled", NULL);
dir = g_dir_open (srcdir, 0, &error);
if (dir == NULL)