Mercurial > libpst
comparison src/libpst.c @ 383:2379a4d8d9c7
Tim Dufrane - fix segfault in pst_close()
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 25 Jul 2019 07:43:49 -0700 |
parents | 0ccc746c8079 |
children | 5c0ce43c7532 |
comparison
equal
deleted
inserted
replaced
382:7eab29e13e61 | 383:2379a4d8d9c7 |
---|---|
407 } | 407 } |
408 | 408 |
409 | 409 |
410 int pst_close(pst_file *pf) { | 410 int pst_close(pst_file *pf) { |
411 DEBUG_ENT("pst_close"); | 411 DEBUG_ENT("pst_close"); |
412 if (!pf) { | |
413 DEBUG_RET(); | |
414 return 0; | |
415 } | |
412 if (!pf->fp) { | 416 if (!pf->fp) { |
413 DEBUG_RET(); | 417 DEBUG_RET(); |
414 return 0; | 418 return 0; |
415 } | 419 } |
416 if (fclose(pf->fp)) { | 420 if (fclose(pf->fp)) { |