1
0
Fork 0
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:
QC 2015-05-14 19:45:57 +02:00
parent 652a6ed7d2
commit 14c50132c8

View file

@ -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++;