[hipl-commit] [tiny] Rev 3651: Fixed bug in lmod_add_module_id.

  • From: Tim Just <tim.just@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Wed, 10 Mar 2010 17:14:08 +0200

Committer: Tim Just <tim.just@xxxxxxxxxxxxxx>
Date: Wed Mar 10 16:13:42 2010 +0100
Revision: 3651
Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: tiny

Log:
  Fixed bug in lmod_add_module_id.
  
  The function should return 0 on success.

Modified:
  M  lib/modularization/modularization.c

=== modified file 'lib/modularization/modularization.c'
--- lib/modularization/modularization.c 2010-03-09 17:32:50 +0000
+++ lib/modularization/modularization.c 2010-03-10 15:13:42 +0000
@@ -354,7 +354,7 @@
 
     module_list[num_modules++] = strdup(module_id);
 
-    return num_modules-1;
+    return 0;
 }
 
 /**

Other related posts:

  • » [hipl-commit] [tiny] Rev 3651: Fixed bug in lmod_add_module_id. - Tim Just