Message ID | CAFEAcA-BjcAztD+XeNGhQevM5JnGNvx5wbx6pZHpga4DmjxkXQ@mail.gmail.com |
---|---|
State | Not Applicable |
Headers | show |
--- a/include/glib-compat.h +++ b/include/glib-compat.h @@ -54,8 +54,7 @@ gint g_poll_fixed(GPollFD *fds, guint nfds, gint timeout); * template. */ static inline gchar *qemu_g_dir_make_tmp(gchar const *tmpl, GError **error) { - gchar const *template = tmpl ? tmpl : ".XXXXXX"; - gchar *path = g_build_filename(g_get_tmp_dir(), template, NULL); + gchar *path = g_build_filename(g_get_tmp_dir(), tmpl ?: ".XXXXXX", NULL); if (mkdtemp(path) != NULL) { return path;