Commit 108b797a authored by Stepan Kasal's avatar Stepan Kasal

(convert): Check for empty output file name.

parent 7a0b7524
2005-08-29 Stepan Kasal <kasal@ucw.cz>
* src/ssconvert.c (convert): If output file name was not given,
don't call go_shell_arg_to_uri. Without gnome, this caused a segfault.
2005-08-28 Morten Welinder <terra@gnome.org>
* configure.in: Post release bump.
......
2005-08-29 Stepan Kasal <kasal@ucw.cz>
* src/ssconvert.c (convert): If output file name was not given,
don't call go_shell_arg_to_uri. Without gnome, this caused a segfault.
2005-08-28 Morten Welinder <terra@gnome.org>
* configure.in: Post release bump.
......
......@@ -101,7 +101,10 @@ convert (char const **args, GOCmdContext *cc)
int res = 0;
GOFileSaver *fs = NULL;
GOFileOpener *fo = NULL;
char *outfile = go_shell_arg_to_uri (args[1]);
char *outfile = NULL;
if (args[1] != NULL)
outfile = go_shell_arg_to_uri (args[1]);
if (ssconvert_export_id != NULL) {
fs = go_file_saver_for_id (ssconvert_export_id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment