projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d1e1cb
)
entry: Don't unlink empty files when saving @fix T2122.
author
Andy Williams
<andy@andywilliams.me>
Wed, 18 Feb 2015 08:46:05 +0000
(08:46 +0000)
committer
Andy 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
patch
|
blob
|
history
diff --git
a/src/lib/elm_entry.c
b/src/lib/elm_entry.c
index de9200a2a8448a4de8b8b91ee76b87975a48e0f7..e7f018ca6a247e2762b9a241838c29524c59f3ac 100644
(file)
--- 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;