From: Martin v. Löwis Date: Wed, 21 Jul 2004 05:34:47 +0000 (+0000) Subject: Patch #984714: Properly diagnose E_DECODE errors. X-Git-Tag: v2.3.5c1~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7495081c6cd7350e1a664d76757451cfb3f75446;p=thirdparty%2FPython%2Fcpython.git Patch #984714: Properly diagnose E_DECODE errors. --- diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 3985cd3191f8..5ade3652a498 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1482,6 +1482,9 @@ err_input(perrdetail *err) break; } } + if (msg == NULL) + msg = "unknown decode error"; + break; } default: fprintf(stderr, "error=%d\n", err->error);