Module: xenomai-gch
Branch: for-forge
Commit: 87573f37561fa04bd187ca05c3bea1bd6f5c27ad
URL:    
http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=87573f37561fa04bd187ca05c3bea1bd6f5c27ad

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Sat Oct 26 17:23:39 2013 +0200

copperplate: avoid compiler error

lib/copperplate/init.c: In function 'copperplate_init':
lib/copperplate/init.c:424:12: error: 'uargv' may be used uninitialized in this 
function [-Werror=maybe-uninitialized]
lib/copperplate/init.c:480:9: note: 'uargv' was declared here

---

 lib/copperplate/init.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/copperplate/init.c b/lib/copperplate/init.c
index f55d916..19036e6 100644
--- a/lib/copperplate/init.c
+++ b/lib/copperplate/init.c
@@ -477,7 +477,7 @@ void copperplate_init(int *argcp, char *const **argvp)
        struct copperskin *skin;
        struct option *options;
        static int init_done;
-       char **uargv;
+       char **uargv = NULL;
 
        if (init_done) {
                warning("duplicate call to %s() ignored", __func__);


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to