Commit 2243a01c6c5dfd6658044ab3394a319b6b970e32

Authored by Jay Berkenbilt
1 parent 5d88f628

comment


git-svn-id: svn+q:///qpdf/trunk@898 71b93d88-0707-0410-a8cf-f5a4172ac649
Showing 1 changed file with 2 additions and 0 deletions
qpdf/qpdf-ctest.c
... ... @@ -33,6 +33,8 @@ static void report_errors()
33 33 e = qpdf_get_error(qpdf);
34 34 assert(e == 0);
35 35 assert(qpdf_get_error_code(qpdf, e) == qpdf_e_success);
  36 + // Call these to ensure that they can be called on a null
  37 + // error pointer.
36 38 (void)qpdf_get_error_full_text(qpdf, e);
37 39 (void)qpdf_get_error_filename(qpdf, e);
38 40 (void)qpdf_get_error_file_position(qpdf, e);
... ...