Home
last modified time | relevance | path

Searched refs:filearr (Results 1 – 2 of 2) sorted by relevance

/PHP-7.2/ext/fileinfo/libmagic/
H A Dapprentice.c1232 char **filearr = NULL; in apprentice_load() local
1281 mlen = maxfiles * sizeof(*filearr); in apprentice_load()
1282 if ((filearr = CAST(char **, in apprentice_load()
1283 erealloc(filearr, mlen))) == NULL) { in apprentice_load()
1290 filearr[files++] = estrndup(mfn, (mflen > sizeof(mfn) - 1)? sizeof(mfn) - 1: mflen); in apprentice_load()
1293 qsort(filearr, files, sizeof(*filearr), cmpstrp); in apprentice_load()
1295 load_1(ms, action, filearr[i], &errs, mset); in apprentice_load()
1296 efree(filearr[i]); in apprentice_load()
1298 efree(filearr); in apprentice_load()
/PHP-7.2/ext/fileinfo/
H A Dlibmagic.patch454 - char **filearr = NULL, *mfn;
456 + char **filearr = NULL;
514 mlen = maxfiles * sizeof(*filearr);
515 if ((filearr = CAST(char **,
516 - realloc(filearr, mlen))) == NULL) {
526 - filearr[files++] = mfn;
531 qsort(filearr, files, sizeof(*filearr), cmpstrp);
534 - free(filearr[i]);
535 + efree(filearr[i]);
537 - free(filearr);
[all …]

Completed in 15 milliseconds