gimp r26539 - in branches/soc-2008-tagging: . app/core



Author: aurisj
Date: Wed Aug 13 21:10:19 2008
New Revision: 26539
URL: http://svn.gnome.org/viewvc/gimp?rev=26539&view=rev

Log:
2008-08-14  Aurimas JuÅka  <aurisj svn gnome org>

	* app/core/gimpdata.c (gimp_data_get_identifier): fixed crash when
	creating new resource (which has NULL filename).



Modified:
   branches/soc-2008-tagging/ChangeLog
   branches/soc-2008-tagging/app/core/gimpdata.c

Modified: branches/soc-2008-tagging/app/core/gimpdata.c
==============================================================================
--- branches/soc-2008-tagging/app/core/gimpdata.c	(original)
+++ branches/soc-2008-tagging/app/core/gimpdata.c	Wed Aug 13 21:10:19 2008
@@ -417,7 +417,7 @@
     {
       return g_strdup (data->internal_name);
     }
-  else
+  else if (data->filename)
     {
       gchar *utf8_filename;
       gsize  bytes_written;
@@ -435,6 +435,10 @@
           return g_strdup (data->filename);
         }
     }
+  else
+    {
+       return NULL;
+    }
 }
 
 static gchar *



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]