[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rockbox-cvs
Subject:    Fix red (pass pointer of 'item')
From:       gerrit () rockbox ! org
Date:       2014-12-22 20:31:45
Message-ID: 201412222031.sBMKVjfi008512 () giant ! haxx ! se
[Download RAW message or body]

commit 5d3aa1bce1ea8113f27153a0820b30d103ca35b0
Author: Thomas Jarosch <tomj@simonv.com>
Date:   Mon Dec 22 21:30:30 2014 +0100

    Fix red (pass pointer of 'item')
    
    Change-Id: I2d04251519623b2531948615c35e61203f9a9940

diff --git a/apps/settings.c b/apps/settings.c
index 4b2c1fe..16d572e 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -1255,7 +1255,7 @@ bool set_option(const char* string, const void* variable, enum optiontype type,
         function, UNIT_INT, 0, numoptions-1, 1,
         set_option_formatter, set_option_get_talk_id
     };
-    memset(item, 0, sizeof(struct settings_list));
+    memset(&item, 0, sizeof(struct settings_list));
     set_option_options = options;
     item.int_setting = &data;
     item.flags = F_INT_SETTING|F_T_INT;
_______________________________________________
rockbox-cvs mailing list
rockbox-cvs@cool.haxx.se
http://cool.haxx.se/cgi-bin/mailman/listinfo/rockbox-cvs

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic