Changeset 214:3c9256cffd7b for color.c

Show
Ignore:
Timestamp:
1998-07-23 13:57:28 (10 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
mutt-0-94
Message:

Guard lots of global (char *) variable deferences against
NULL pointers.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • color.c

    r122 r214  
    319319    { 
    320320      strcpy(buf,tmp->pattern); 
    321       mutt_check_simple (buf, sizeof (buf), SimpleSearch); 
     321      mutt_check_simple (buf, sizeof (buf), NONULL(SimpleSearch)); 
    322322      tmp->color_pattern = mutt_pattern_comp (buf, M_FULL_MSG, err); 
    323323    } 
     
    528528 
    529529      strfcpy (tempbuf, buf->data, sizeof (tempbuf)); 
    530       mutt_check_simple (tempbuf, sizeof (tempbuf), SimpleSearch); 
     530      mutt_check_simple (tempbuf, sizeof (tempbuf), NONULL(SimpleSearch)); 
    531531      if ((pat = mutt_pattern_comp (tempbuf, M_FULL_MSG, err)) == NULL) 
    532532      { 
     
    684684 
    685685      strfcpy (tempbuf, buf->data, sizeof (tempbuf)); 
    686       mutt_check_simple (tempbuf, sizeof (tempbuf), SimpleSearch); 
     686      mutt_check_simple (tempbuf, sizeof (tempbuf), NONULL(SimpleSearch)); 
    687687      if ((pat = mutt_pattern_comp (tempbuf, M_FULL_MSG, err)) == NULL) 
    688688      {