Skip to content

Commit cba5023

Browse files
committed
Code review suggestion
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
1 parent 91e6449 commit cba5023

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

portable/ThirdParty/GCC/Posix/utils/wait_for_event.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ struct event * event_create( void )
4343
{
4444
struct event * ev = malloc( sizeof( struct event ) );
4545

46-
if( ev )
46+
if( ev != NULL )
4747
{
4848
ev->event_triggered = false;
4949
pthread_mutex_init( &ev->mutex, NULL );
5050
pthread_cond_init( &ev->cond, NULL );
5151
}
52+
5253
return ev;
5354
}
5455

0 commit comments

Comments
 (0)