mm.c: Kill pointless initialization.
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 1 Jan 2015 18:00:07 +0000 (18:00 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 12 Jan 2015 22:29:07 +0000 (23:29 +0100)
"ret" is set in the first statement after the declarations.

Found by cppcheck.

mm.c

diff --git a/mm.c b/mm.c
index bcaee99..c87b471 100644 (file)
--- a/mm.c
+++ b/mm.c
@@ -203,7 +203,7 @@ struct mm_year_data {
 
 static int mm_year_parser(int argc, char **argv, void **private)
 {
-       int ret = -E_MOOD_SYNTAX;
+       int ret;
        struct mm_year_data *mmyd = para_malloc(sizeof(*mmyd));
        time_t current_time;
        struct tm *gmt;