summaryrefslogtreecommitdiff
path: root/decode11.c
diff options
context:
space:
mode:
Diffstat (limited to 'decode11.c')
-rw-r--r--decode11.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/decode11.c b/decode11.c
index a9360ff..a23fa30 100644
--- a/decode11.c
+++ b/decode11.c
@@ -107,7 +107,9 @@ NewQEntry (
if (FreeQEntries == NULL)
{
/* create new queue entry */
- p = (struct QueueEntry *) Malloc ((long)(sizeof (*p)));
+ p = malloc (sizeof (*p));
+ if (p == NULL)
+ panic("unable to allocate new QueueEntry");
}
else
{