Fix typo in procmime.c
[claws.git] / src / procmime.c
index ca4904901f56de7d352885e659b8cb1b73b03889..64352255793a647e94bf6c0205dcd1ed90e0b36f 100644 (file)
@@ -867,7 +867,7 @@ gchar *procmime_get_tmp_file_name(MimeInfo *mimeinfo)
                if (basetmp == NULL)
                        basetmp = "mimetmp";
                base = g_basename(basetmp);
-               if (*basename == '\0') basename = g_strdup("mimetmp");
+               if (*base == '\0') base = g_strdup("mimetmp");
                Xstrdup_a(base, base, return NULL);
                subst_for_shellsafe_filename(base);
        }