Changeset 48 for trunk/src/reglookup.c


Ignore:
Timestamp:
08/06/05 18:05:18 (19 years ago)
Author:
tim
Message:

fixed segfault when valuenames are NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/reglookup.c

    r47 r48  
    749749  for(i=0; (i < cur->num_values); i++)
    750750  {
    751     if(strcasecmp(sub->values[i].valuename, cur_str) == 0)
     751    /* XXX: Not sure when/why this can be NULL, but it's happened. */
     752    if(sub->values[i].valuename != NULL
     753       && strcasecmp(sub->values[i].valuename, cur_str) == 0)
    752754    {
    753755      /* XXX: fix mem leak with stack2Path return value */
Note: See TracChangeset for help on using the changeset viewer.