diff options
author | Andy Williams <andy@andywilliams.me> | 2015-02-18 08:46:05 +0000 |
---|---|---|
committer | Andy Williams <andy@andywilliams.me> | 2015-02-18 08:47:24 +0000 |
commit | cacdc8b7e7c72383ddc1dbba4d8b032dc8430992 (patch) | |
tree | 62892d33f599338d65418a28c14e9191ba7f387f | |
parent | 3d1e1cb161afba9434b3c0ddc84c60fe490ad81c (diff) | |
download | elementary-cacdc8b7e7c72383ddc1dbba4d8b032dc8430992.tar.gz |
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.
-rw-r--r-- | src/lib/elm_entry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index de9200a2a..e7f018ca6 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; |