summaryrefslogtreecommitdiff
path: root/stream/stm_read.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2008-04-20 12:20:52 +0200
committerSebastian Rasmussen <sebras@hotmail.com>2008-04-20 12:20:52 +0200
commitd96fc32d1dcae224b320918c96153574fbd5ed5e (patch)
treed9d972a39fc66f998059b585240ed43d395e07ef /stream/stm_read.c
parent704339802c88bc470187bd77c4680d19108dab0b (diff)
downloadmupdf-d96fc32d1dcae224b320918c96153574fbd5ed5e.tar.xz
Adhere to common idiom when not encoundering error.
Diffstat (limited to 'stream/stm_read.c')
-rw-r--r--stream/stm_read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stm_read.c b/stream/stm_read.c
index 43bdb192..e0a6e8a1 100644
--- a/stream/stm_read.c
+++ b/stream/stm_read.c
@@ -269,7 +269,7 @@ fz_readerror(fz_stream *stm)
if (stm->error)
{
error = stm->error;
- stm->error = nil;
+ stm->error = fz_okay;
return fz_rethrow(error, "delayed read error");
}
return fz_okay;