No need to continue looping after the id is rejected.

SVN revision: 27695
This commit is contained in:
Sebastian Dransfeld 2006-12-31 12:23:16 +00:00
parent abb527f7e5
commit 26ccc7a2a4
1 changed files with 5 additions and 1 deletions

View File

@ -670,7 +670,11 @@ e_gadcon_client_config_new(E_Gadcon *gc, const char *name)
for (l = cf_gc->clients; l; l = l->next)
{
cf_gcc = l->data;
if (!strcmp(buf, cf_gcc->id)) ok = 0;
if (!strcmp(buf, cf_gcc->id))
{
ok = 0;
break;
}
}
id++;
}