Changeset a12f7f1 in mainline for uspace/lib/posix/fnmatch.c


Ignore:
Timestamp:
2011-07-21T02:24:41Z (14 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cfbb5d18
Parents:
94f8b81c
Message:

All occurences of call to native free() secured from passing NULL pointer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/fnmatch.c

    r94f8b81c ra12f7f1  
    553553
    554554        if ((flags & FNM_CASEFOLD) != 0) {
    555                 free((char *) pattern);
    556                 free((char *) string);
     555                if (pattern) {
     556                        free((char *) pattern);
     557                }
     558                if (string) {
     559                        free((char *) string);
     560                }
    557561        }
    558562
Note: See TracChangeset for help on using the changeset viewer.