From c2632a5c34de3448fedc581a978a9a1924089fcd Mon Sep 17 00:00:00 2001 From: "Martin v. Löwis" Date: Wed, 21 Jul 2004 05:35:02 +0000 Subject: Patch #984714: Properly diagnose E_DECODE errors. Backported to 2.3. --- Python/pythonrun.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Python/pythonrun.c') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index d89e5e99133..4d03229f229 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1471,6 +1471,9 @@ err_input(perrdetail *err) break; } } + if (msg == NULL) + msg = "unknown decode error"; + break; } default: fprintf(stderr, "error=%d\n", err->error); -- cgit v1.3.1