From 068a664c97fd94ff56268abfa3928f139762ffd9 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Wed, 18 Feb 2015 08:46:05 +0000 Subject: [PATCH] entry: Don't unlink empty files when saving @fix T2122. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index de9200a..e7f018c 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -204,7 +204,7 @@ _utf8_markup_save(const char *file, { FILE *f; - if ((!text) || (!text[0])) + if (!text) { ecore_file_unlink(file); return; -- 2.7.4