Skip to content

Commit 8aff060

Browse files
committed
Doc: CPLGetLastErrorMsg(): fix to reflect implementation
1 parent 221241e commit 8aff060

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

port/cpl_error.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -879,8 +879,8 @@ CPLErr CPL_STDCALL CPLGetLastErrorType()
879879
* been cleared by CPLErrorReset(). The returned pointer is to an internal
880880
* string that should not be altered or freed.
881881
*
882-
* @return the last error message, or NULL if there is no posted error
883-
* message.
882+
* @return the last error message, or an empty string ("") if there is no
883+
* posted error message.
884884
*/
885885

886886
const char *CPL_STDCALL CPLGetLastErrorMsg()

0 commit comments

Comments
 (0)