summaryrefslogtreecommitdiff
path: root/gfx/pdftoc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/pdftoc.c')
-rw-r--r--gfx/pdftoc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx/pdftoc.c b/gfx/pdftoc.c
index dd30ded..39d59bd 100644
--- a/gfx/pdftoc.c
+++ b/gfx/pdftoc.c
@@ -173,7 +173,7 @@ static void line(struct pdftoc *ctx, const char *s)
}
break;
case xref:
- abort();
+ BUG("cannot be in xref");
case trailer:
if (sscanf(s, " /Root %d 0 R", &ctx->root) == 1)
break;
@@ -181,7 +181,7 @@ static void line(struct pdftoc *ctx, const char *s)
break;
break;
default:
- abort();
+ BUG("invalid state %d", ctx->state);
}
}