summaryrefslogtreecommitdiff
path: root/base/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'base/error.c')
-rw-r--r--base/error.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/base/error.c b/base/error.c
index d7065dbd..926c48dc 100644
--- a/base/error.c
+++ b/base/error.c
@@ -20,7 +20,7 @@ fz_throw1(char *fmt, ...)
eo = fz_malloc(sizeof(fz_error));
if (!eo) return fz_outofmem;
- eo->nrefs = 1;
+ eo->refs = 1;
strlcpy(eo->func, "unknown", sizeof eo->func);
strlcpy(eo->file, "unknown", sizeof eo->file);
eo->line = 0;
@@ -42,7 +42,7 @@ fz_throw0(const char *func, const char *file, int line, char *fmt, ...)
eo = fz_malloc(sizeof(fz_error));
if (!eo) return fz_outofmem;
- eo->nrefs = 1;
+ eo->refs = 1;
strlcpy(eo->func, func, sizeof eo->func);
strlcpy(eo->file, file, sizeof eo->file);
eo->line = line;
@@ -61,9 +61,9 @@ fz_throw0(const char *func, const char *file, int line, char *fmt, ...)
void
fz_droperror(fz_error *eo)
{
- if (eo->nrefs > 0)
- eo->nrefs--;
- if (eo->nrefs == 0)
+ if (eo->refs > 0)
+ eo->refs--;
+ if (eo->refs == 0)
fz_free(eo);
}