diff options
-rw-r--r-- | src/Resources.c | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/src/Resources.c b/src/Resources.c index 139beba..1d2871c 100644 --- a/src/Resources.c +++ b/src/Resources.c @@ -849,22 +849,20 @@ static XtCacheRef *GetResources( UNLOCK_PROCESS; } } - { - for (res = table, j = 0; j < num_resources; j++, res++) { - if (!found[j] && typed[j]) { - /* - * This resource value was specified as a typed arg. - * However, the default value is being used here since - * type type conversion failed, so we compress the list. - */ - register XtTypedArg* arg = typed_args + typed[j] - 1; - register int i; + for (res = table, j = 0; j < num_resources; j++, res++) { + if (!found[j] && typed[j]) { + /* + * This resource value was specified as a typed arg. + * However, the default value is being used here since + * type type conversion failed, so we compress the list. + */ + register XtTypedArg* arg = typed_args + typed[j] - 1; + register int i; - for (i = num_typed_args - typed[j]; i > 0; i--, arg++) { - *arg = *(arg+1); - } - num_typed_args--; + for (i = num_typed_args - typed[j]; i > 0; i--, arg++) { + *arg = *(arg+1); } + num_typed_args--; } } if (tm_hack) |