entry: Don't unlink empty files when saving @fix T2122.
authorAndy Williams <andy@andywilliams.me>
Wed, 18 Feb 2015 08:46:05 +0000 (08:46 +0000)
committerAndy Williams <andy@andywilliams.me>
Wed, 18 Feb 2015 08:47:24 +0000 (08:47 +0000)
Simmple fix where we now only unlink if the object we are saving is NULL.
A null terminated string being null is not an error case.

src/lib/elm_entry.c

index de9200a..e7f018c 100644 (file)
@@ -204,7 +204,7 @@ _utf8_markup_save(const char *file,
 {
    FILE *f;
 
-   if ((!text) || (!text[0]))
+   if (!text)
      {
         ecore_file_unlink(file);
         return;