Changeset 1497:100b0368eff6 for buffy.c

Show
Ignore:
Timestamp:
2000-02-07 04:52:51 (9 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

Fix a NULL pointer deference.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • buffy.c

    r1423 r1497  
    119119    return 0; 
    120120 
    121   f = fopen (path, "rb"); 
    122   rc = test_last_status_new (f); 
    123   fclose (f); 
     121  if ((f = fopen (path, "rb"))) 
     122  { 
     123    rc = test_last_status_new (f); 
     124    fclose (f); 
     125  } 
    124126 
    125127  return rc;