aboutsummaryrefslogtreecommitdiffstats
path: root/src/note.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/note.c')
-rw-r--r--src/note.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/note.c b/src/note.c
index 9508ea5..e8c9fb0 100644
--- a/src/note.c
+++ b/src/note.c
@@ -94,9 +94,9 @@ void edit_note(char **note, const char *editor)
wins_launch_external(tmppath, editor);
- if (io_file_is_empty(tmppath) > 0)
+ if (io_file_is_empty(tmppath) > 0) {
erase_note(note);
- else if ((fp = fopen(tmppath, "r"))) {
+ } else if ((fp = fopen(tmppath, "r"))) {
sha1_stream(fp, sha1);
fclose(fp);
*note = sha1;