diff options
-rw-r--r-- | src/upload.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/upload.c b/src/upload.c index 5ac0659f..80d8c3a9 100644 --- a/src/upload.c +++ b/src/upload.c | |||
@@ -695,14 +695,14 @@ static char *selectFile() { | |||
695 | char * filename; | 695 | char * filename; |
696 | 696 | ||
697 | filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)); | 697 | filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)); |
698 | ret = strdup(filename); | 698 | ret = STRDUP(filename); |
699 | g_free(filename); | 699 | g_free(filename); |
700 | } | 700 | } else |
701 | else | 701 | ret = NULL; |
702 | ret = NULL; | ||
703 | 702 | ||
704 | gtk_widget_destroy (dialog); | 703 | gtk_widget_destroy (dialog); |
705 | UNREF(uploadXML); | 704 | UNREF(uploadXML); |
705 | return ret; | ||
706 | #else /* MINGW */ | 706 | #else /* MINGW */ |
707 | return plibc_ChooseDir(_("Choose the file or directory you want to publish."), | 707 | return plibc_ChooseDir(_("Choose the file or directory you want to publish."), |
708 | BIF_BROWSEINCLUDEFILES | BIF_USENEWUI | BIF_SHAREABLE | BIF_NONEWFOLDERBUTTON); | 708 | BIF_BROWSEINCLUDEFILES | BIF_USENEWUI | BIF_SHAREABLE | BIF_NONEWFOLDERBUTTON); |