Module: xenomai-head
Branch: master
Commit: 68949f38ef2449ca30d34ab55c90d8d96407ae22
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=68949f38ef2449ca30d34ab55c90d8d96407ae22

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Fri Jan 28 21:04:51 2011 +0100

analogy: minor fix in wf_generate

---

 src/utils/analogy/wf_generate.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/utils/analogy/wf_generate.c b/src/utils/analogy/wf_generate.c
index 97b19c9..0d311b8 100644
--- a/src/utils/analogy/wf_generate.c
+++ b/src/utils/analogy/wf_generate.c
@@ -199,9 +199,10 @@ int main(int argc, char *argv[])
        int err = 0;
        struct config cfg;
        double *values = NULL;
-
        
        err = init_config(&cfg, argc, argv);
+       if (err < 0)
+               goto out;
 
        err = a4l_wf_check_config(&cfg.wf);
        if (err < 0)


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

Reply via email to