Module: xenomai-3
Branch: wip/prioceil
Commit: 3d1b80263cf6bf547accf86790c4670e006726dc
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=3d1b80263cf6bf547accf86790c4670e006726dc

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Feb 29 11:53:22 2016 +0100

lib/smokey: init: fix regression introduced by #9489274

---

 lib/smokey/init.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/smokey/init.c b/lib/smokey/init.c
index 0db3ec9..b69f24c 100644
--- a/lib/smokey/init.c
+++ b/lib/smokey/init.c
@@ -508,7 +508,8 @@ static int smokey_parse_option(int optnum, const char 
*optarg)
 {
        switch (optnum) {
        case run_opt:
-               include_arg = strdup(optarg);
+               if (optarg)
+                       include_arg = strdup(optarg);
                break;
        case exclude_opt:
                exclude_arg = strdup(optarg);


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

Reply via email to