IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 7, 2006, 10:35:00 AM (20 years ago)
Author:
jhoblitt
Message:

fix strcmp() on NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/regtoolConfig.c

    r6338 r6340  
    7878    // XXX why is "" being returned when -[foo] isn't specified?
    7979#define EMPTY_TO_NULL_STRING(var) \
    80     if (strcmp(var, "") == 0) { \
     80    if (var != NULL && strcmp(var, "") == 0) { \
    8181        var = NULL; \
    8282    }
Note: See TracChangeset for help on using the changeset viewer.