aboutsummaryrefslogtreecommitdiff
path: root/stack2.c
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2021-12-29 10:49:19 +0100
committerThomas Schmucker <ts@its1.de>2021-12-29 10:49:19 +0100
commit5e696c74c9649b0e54133d46a3ae92e5ce0632fb (patch)
treeef9d4e6bcf9797b74e13ddbf943f424ac1d49664 /stack2.c
parenta9fecebe13be05c15a5adf5a6fcefacb73d0d035 (diff)
parent6ced2a50056acbf7caec404a1edfa3b07fa1ac5d (diff)
downloaddata-structures-5e696c74c9649b0e54133d46a3ae92e5ce0632fb.tar.gz
data-structures-5e696c74c9649b0e54133d46a3ae92e5ce0632fb.tar.bz2
data-structures-5e696c74c9649b0e54133d46a3ae92e5ce0632fb.zip
Merge branch 'feat/remove-null-checks'
Diffstat (limited to 'stack2.c')
-rw-r--r--stack2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stack2.c b/stack2.c
index b4b8afd..aa5d6ed 100644
--- a/stack2.c
+++ b/stack2.c
@@ -64,7 +64,7 @@ stack_pop(struct stack *stack, T *data)
64 if ( stack->p != 0 ) { 64 if ( stack->p != 0 ) {
65 --stack->p; 65 --stack->p;
66 66
67 if ( data != NULL ) { 67 if ( data ) {
68 *data = stack->array[stack->p]; 68 *data = stack->array[stack->p];
69 } 69 }
70 return true; 70 return true;