]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch #984714: Properly diagnose E_DECODE errors.
authorMartin v. Löwis <martin@v.loewis.de>
Wed, 21 Jul 2004 05:34:47 +0000 (05:34 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Wed, 21 Jul 2004 05:34:47 +0000 (05:34 +0000)
Python/pythonrun.c

index 3985cd3191f8ee35dd9e13af54821cb38310de65..5ade3652a4986aacb232dfa1fbe42b3bf20d8baf 100644 (file)
@@ -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);