]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 bcaee998940135dc20fd5d8ff9a4c8af355ba19c..c87b471d04f1da1e462d43ecb88ecc83bd7a6592 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;