diff options
Diffstat (limited to 'src/SetupGroup.c')
-rw-r--r-- | src/SetupGroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SetupGroup.c b/src/SetupGroup.c index bb0b640..26f3be4 100644 --- a/src/SetupGroup.c +++ b/src/SetupGroup.c @@ -186,7 +186,7 @@ static int PUGH_SetupGAGroup (pGH *newGH, temp = realloc (newGH->variables, (newGH->nvariables+n_variables) * sizeof (void **)); - if(temp) + if(newGH->nvariables+n_variables==0 || temp) { newGH->variables = temp; |