From 1ae940a5870df2f706fa884afd533847f6b0b1a8 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 2 Jan 1995 19:04:15 +0000 Subject: Lots of changes, most minor (fatal() instead of abort(), use of err_fetch/err_restore and so on). But... NOTE: import.c has been rewritten and all the DL stuff is now in the new file importdl.c. --- Python/marshal.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Python/marshal.c') diff --git a/Python/marshal.c b/Python/marshal.c index 96c530a78a..48612b094e 100644 --- a/Python/marshal.c +++ b/Python/marshal.c @@ -406,6 +406,10 @@ rd_object(fp) FILE *fp; { RFILE rf; + if (err_occurred()) { + fprintf(stderr, "XXX rd_object called with exception set\n"); + return NULL; + } rf.fp = fp; return r_object(&rf); } @@ -416,6 +420,10 @@ rds_object(str, len) int len; { RFILE rf; + if (err_occurred()) { + fprintf(stderr, "XXX rds_object called with exception set\n"); + return NULL; + } rf.fp = NULL; rf.str = NULL; rf.ptr = str; -- cgit v1.2.1