mirror of
https://github.com/davatorium/rofi.git
synced 2025-07-31 21:59:25 -04: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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
retv[( *length ) + 1] = NULL;
|
if(retv != NULL ) {
|
||||||
retv = g_realloc ( retv, ( *length + 1 ) * sizeof ( char* ) );
|
retv[( *length ) + 1] = NULL;
|
||||||
|
retv = g_realloc ( retv, ( *length + 1 ) * sizeof ( char* ) );
|
||||||
|
}
|
||||||
TICK_N ( "Read stdin STOP" );
|
TICK_N ( "Read stdin STOP" );
|
||||||
return retv;
|
return retv;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue