From 8cf7f2bfb542b1583aa525611179d1a545f945d5 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 5 Feb 2022 08:26:32 -0500 Subject: API contract: qpdf_get_qpdf_version() returns a static --- libqpdf/qpdf-c.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'libqpdf/qpdf-c.cc') diff --git a/libqpdf/qpdf-c.cc b/libqpdf/qpdf-c.cc index 6f03a315..f03ed845 100644 --- a/libqpdf/qpdf-c.cc +++ b/libqpdf/qpdf-c.cc @@ -161,6 +161,7 @@ static QPDF_ERROR_CODE trap_errors( char const* qpdf_get_qpdf_version() { QTC::TC("qpdf", "qpdf-c called qpdf_get_qpdf_version"); + // The API guarantees that this is a static value. return QPDF::QPDFVersion().c_str(); } -- cgit v1.2.3-54-g00ecf