changeset 35379:2b49f4c8c47f

Allow setting guiInfo.Filename to NULL. It's totally valid to do so.
author ib
date Sun, 25 Nov 2012 14:17:23 +0000
parents e900dc6b8d66
children b18c14526662
files gui/ui/actions.c
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gui/ui/actions.c	Sun Nov 25 12:24:02 2012 +0000
+++ b/gui/ui/actions.c	Sun Nov 25 14:17:23 2012 +0000
@@ -221,9 +221,6 @@
 
 void uiSetFileName(char *dir, char *name, int type)
 {
-    if (!name)
-        return;
-
     if (!dir)
         setdup(&guiInfo.Filename, name);
     else