diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2008-02-29 14:39:47 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2008-02-29 14:39:47 +0000 |
commit | 81a6e3b529c6416c526b1da9fca8f110790b16c7 (patch) | |
tree | 494ab65ce2cf48d6e44d286d1dd55dd363e78a8c /src/main/Groups.c | |
parent | d91a2cb6a60737c926d29ddf2f2a1bdfcf1ed177 (diff) |
bugfix for CCTK_TraverseString(): do not overwrite a previously set error code
while continuing to parse following tokens
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4464 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/Groups.c')
-rw-r--r-- | src/main/Groups.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/Groups.c b/src/main/Groups.c index ec587b5b..7596dcb8 100644 --- a/src/main/Groups.c +++ b/src/main/Groups.c @@ -2269,7 +2269,7 @@ int CCTK_TraverseString (const char *traverse_string, { (*callback) (vindex, option_string, callback_arg); } - retval += last - first + 1; + if (retval >= 0) retval += last - first + 1; } /* Only emit an error message if the name is really invalid. If it is a valid group name, but the group has zero variables, |