mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Check for nil before updating.
This commit is contained in:
parent
544229d975
commit
ff52140697
1 changed files with 4 additions and 2 deletions
|
@ -92,8 +92,10 @@ static char **get_dmenu ( unsigned int *length )
|
|||
break;
|
||||
}
|
||||
}
|
||||
retv[( *length ) + 1] = NULL;
|
||||
retv = g_realloc ( retv, ( *length + 1 ) * sizeof ( char* ) );
|
||||
if(retv != NULL ) {
|
||||
retv[( *length ) + 1] = NULL;
|
||||
retv = g_realloc ( retv, ( *length + 1 ) * sizeof ( char* ) );
|
||||
}
|
||||
TICK_N ( "Read stdin STOP" );
|
||||
return retv;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue