diff options
| author | Thomas Schmucker <ts@its1.de> | 2021-12-29 10:49:19 +0100 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2021-12-29 10:49:19 +0100 |
| commit | 5e696c74c9649b0e54133d46a3ae92e5ce0632fb (patch) | |
| tree | ef9d4e6bcf9797b74e13ddbf943f424ac1d49664 /stack2.c | |
| parent | a9fecebe13be05c15a5adf5a6fcefacb73d0d035 (diff) | |
| parent | 6ced2a50056acbf7caec404a1edfa3b07fa1ac5d (diff) | |
| download | data-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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; |
