summaryrefslogtreecommitdiff
path: root/src/deque.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2022-10-24 21:04:00 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2022-10-24 21:04:00 +0200
commit3422d8db505630a70bc89a4eee7db927b8e5ec2f (patch)
treef0c6e1ba7db9991f2bd38c9169f9921bfe5e61d8 /src/deque.c
parentdf5167db909a88fb8e16dd20b37442495a6ac059 (diff)
parentaab49e5a013c53ae812a143fe41add74e0677a61 (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/deque.c')
-rw-r--r--src/deque.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/deque.c b/src/deque.c
index 3ff7dc9..bc39e0e 100644
--- a/src/deque.c
+++ b/src/deque.c
@@ -122,6 +122,8 @@ EXPORT_SYMBOL void *HXdeque_del(struct HXdeque_node *node)
EXPORT_SYMBOL void HXdeque_free(struct HXdeque *dq)
{
+ if (dq == NULL)
+ return;
struct HXdeque_node *node, *next;
for (node = dq->first; node != NULL; node = next) {
next = node->next;