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

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