Mercurial > hg > truffle
comparison src/share/tools/launcher/wildcard.c @ 9062:8be1318fbe77
Merge
author | dcubed |
---|---|
date | Fri, 05 Apr 2013 10:38:08 -0700 |
parents | bad3bed4b323 |
children |
comparison
equal
deleted
inserted
replaced
9055:dcdeb150988c | 9062:8be1318fbe77 |
---|---|
366 wildcardFileList(const char *wildcard) | 366 wildcardFileList(const char *wildcard) |
367 { | 367 { |
368 const char *basename; | 368 const char *basename; |
369 FileList fl = FileList_new(16); | 369 FileList fl = FileList_new(16); |
370 WildcardIterator it = WildcardIterator_for(wildcard); | 370 WildcardIterator it = WildcardIterator_for(wildcard); |
371 if (it == NULL) | 371 if (it == NULL) { |
372 FileList_free(fl); | |
372 return NULL; | 373 return NULL; |
374 } | |
373 while ((basename = WildcardIterator_next(it)) != NULL) | 375 while ((basename = WildcardIterator_next(it)) != NULL) |
374 if (isJarFileName(basename)) | 376 if (isJarFileName(basename)) |
375 FileList_add(fl, wildcardConcat(wildcard, basename)); | 377 FileList_add(fl, wildcardConcat(wildcard, basename)); |
376 WildcardIterator_close(it); | 378 WildcardIterator_close(it); |
377 return fl; | 379 return fl; |