FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Don't try to put a value into a NULL pointer. · python-emscripten/cpython@1942806 · GitHub

Repository navigation

Commit 1942806

Browse files
committed
Don't try to put a value into a NULL pointer.
1 parent 4141d65 commit 1942806

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Python/dtoa.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,8 @@ _Py_dg_strtod(const char *s00, char **se)
14851485
gives the total number of digits ignoring leading zeros. A valid input
14861486
must have at least one digit. */
14871487
if (!nd && !lz) {
1488-
*se = (char *)s00;
1488+
if (se)
1489+
*se = (char *)s00;
14891490
goto parse_error;
14901491
}
14911492

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL