summaryrefslogtreecommitdiffstats
path: root/Parser/tokenizer.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-08-07 15:18:57 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-08-07 15:18:57 (GMT)
commit2863c10a86de1073d3e556779e326b6065347b2c (patch)
treefb8680b2ed102e8cb7385990dee716224e95e2c1 /Parser/tokenizer.c
parent2f7f8c4a648b1f8a467840bab96f30b0c6f7374e (diff)
downloadcpython-2863c10a86de1073d3e556779e326b6065347b2c.zip
cpython-2863c10a86de1073d3e556779e326b6065347b2c.tar.gz
cpython-2863c10a86de1073d3e556779e326b6065347b2c.tar.bz2
Use Py_FatalError instead of abort.
Diffstat (limited to 'Parser/tokenizer.c')
-rw-r--r--Parser/tokenizer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
index 34fbfa6..64ff320 100644
--- a/Parser/tokenizer.c
+++ b/Parser/tokenizer.c
@@ -326,7 +326,8 @@ fp_readl(char *s, int size, struct tok_state *tok)
{
#ifndef Py_USING_UNICODE
/* In a non-Unicode built, this should never be called. */
- abort();
+ Py_FatalError("fp_readl should not be called in this build.");
+ return NULL;
#else
PyObject* utf8;
PyObject* buf = tok->decoding_buffer;
@@ -403,7 +404,7 @@ static void fp_ungetc(int c, struct tok_state *tok) {
static char *
decoding_fgets(char *s, int size, struct tok_state *tok)
{
- char *line;
+ char *line = NULL;
int warn = 0, badchar = 0;
for (;;) {
if (tok->decoding_state < 0) {