mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-10 15:44:41 -05:00
more small cleanups
This commit is contained in:
parent
652a6ed7d2
commit
14c50132c8
1 changed files with 2 additions and 2 deletions
|
@ -174,7 +174,7 @@ static char ** get_apps ( unsigned int *length )
|
|||
unsigned int num_favorites = 0;
|
||||
char *path;
|
||||
|
||||
if ( getenv ( "PATH" ) == NULL ) {
|
||||
if ( g_getenv ( "PATH" ) == NULL ) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -247,7 +247,7 @@ static char ** get_apps ( unsigned int *length )
|
|||
|
||||
unsigned int removed = 0;
|
||||
for ( unsigned int index = num_favorites; index < ( ( *length ) - 1 ); index++ ) {
|
||||
if ( strcmp ( retv[index], retv[index + 1] ) == 0 ) {
|
||||
if ( g_strcmp0 ( retv[index], retv[index + 1] ) == 0 ) {
|
||||
g_free ( retv[index] );
|
||||
retv[index] = NULL;
|
||||
removed++;
|
||||
|
|
Loading…
Add table
Reference in a new issue