Fixed duplicate history writing.
authorDaniel Carl <danielcarl@gmx.de>
Wed, 31 Jul 2013 00:01:34 +0000 (02:01 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Wed, 31 Jul 2013 00:01:34 +0000 (02:01 +0200)
src/history.c

index e7335e3..fd598f2 100644 (file)
@@ -79,8 +79,9 @@ void history_add(HistoryType type, const char *value, const char *additional)
 
     if (additional) {
         util_file_append(file, "%s\t%s\n", value, additional);
+    } else {
+        util_file_append(file, "%s\n", value);
     }
-    util_file_append(file, "%s\n", value);
 }
 
 /**