diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2011-10-07 17:01:34 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-10-07 17:01:34 -0700 |
commit | 9e898aa4fd964e888044e2fa2d64089505331f62 (patch) | |
tree | 744496ea6793551a3f51dadabc8aa11b48f74383 | |
parent | df2008411a5c6a735af2b0fced01df660bb6978a (diff) |
Don't pop elements from our array while we're itterating through it.
https://bugs.freedesktop.org/show_bug.cgi?id=22543
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r-- | src/Resources.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Resources.c b/src/Resources.c index 2ac2eae..139beba 100644 --- a/src/Resources.c +++ b/src/Resources.c @@ -847,8 +847,11 @@ static XtCacheRef *GetResources( } } UNLOCK_PROCESS; - - if (typed[j]) { + } + } + { + 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 |