changeset 14517 | e50acb436a8d |
parent 13411 | 224a28370893 |
child 17445 | 6c4e2d6b953b |
--- a/jdk/src/share/bin/wildcard.c Mon Nov 19 13:17:40 2012 +0000 +++ b/jdk/src/share/bin/wildcard.c Tue Nov 20 09:26:38 2012 +0000 @@ -356,8 +356,13 @@ const char *basename; FileList fl = FileList_new(16); WildcardIterator it = WildcardIterator_for(wildcard); + if (it == NULL) + { + FileList_free(fl); return NULL; + } + while ((basename = WildcardIterator_next(it)) != NULL) if (isJarFileName(basename)) FileList_add(fl, wildcardConcat(wildcard, basename));