Skip to content

Commit

Permalink
Fixed a bug I missed
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaryob committed Sep 16, 2024
1 parent 23a4c9c commit 1547b73
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ikstack.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@ iks_stack_new (size_t meta_chunk, size_t data_chunk)

len = sizeof (ikstack) + meta_chunk + data_chunk + (sizeof (ikschunk) * 2);
s = iks_malloc (len);
if (!s) {
iks_free (s);
return NULL;
}
if (!s) return NULL;
s->allocated = len;
s->meta = (ikschunk *) ((char *) s + sizeof (ikstack));
s->meta->next = NULL;
Expand Down

0 comments on commit 1547b73

Please sign in to comment.