aboutsummaryrefslogtreecommitdiff
path: root/stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'stack.c')
-rw-r--r--stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stack.c b/stack.c
index 162324e..48b9eba 100644
--- a/stack.c
+++ b/stack.c
@@ -33,7 +33,7 @@ stack_push(struct stack *stack, T data)
33{ 33{
34 struct stack_item *new_item; 34 struct stack_item *new_item;
35 35
36 if ( (new_item = malloc(sizeof(*new_item))) != NULL ) { 36 if ( (new_item = malloc(sizeof *new_item)) != NULL ) {
37 new_item->data = data; 37 new_item->data = data;
38 new_item->next = stack->head; 38 new_item->next = stack->head;
39 stack->head = new_item; 39 stack->head = new_item;