mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-21 21:47:55 +08:00
Initialize pointer to null before using it
This commit is contained in:
@@ -1494,7 +1494,7 @@ ToNumeric(T* pVal,
|
||||
PreserveErrno preserveErrno;
|
||||
errno = 0;
|
||||
|
||||
wxStringCharType *end;
|
||||
wxStringCharType *end = nullptr;
|
||||
|
||||
const R res = convert(start, &end, base);
|
||||
if ( rangeCheck && !rangeCheck(res) )
|
||||
|
||||
Reference in New Issue
Block a user