builder: Fix handling of builddir

tingping/wmclass
Alexander Larsson 2016-01-12 14:25:41 +01:00
parent 4c47951cbd
commit 55e934ee76
1 changed files with 4 additions and 1 deletions

View File

@ -845,7 +845,10 @@ builder_module_build (BuilderModule *self,
if (use_builddir)
{
build_dir_relative = g_build_filename (source_subdir_relative, "_xdg_app_build", NULL);
if (source_subdir_relative)
build_dir_relative = g_build_filename (source_subdir_relative, "_xdg_app_build", NULL);
else
build_dir_relative = g_strdup ("_xdg_app_build");
build_dir = g_file_get_child (source_subdir, "_xdg_app_build");
if (!g_file_make_directory (build_dir, NULL, error))