mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Fix possible macro expansion problem.
As indicated by llvm analysis passes.
This commit is contained in:
parent
29f6823cf9
commit
bf51983150
1 changed files with 2 additions and 1 deletions
|
@ -627,7 +627,8 @@ int main ( int argc, char *argv[] )
|
|||
else{
|
||||
// Get the base name of the executable called.
|
||||
char *base_name = g_path_get_basename ( argv[0] );
|
||||
dmenu_mode = ( strcmp ( base_name, "dmenu" ) == 0 );
|
||||
const char * const dmenu_str = "dmenu";
|
||||
dmenu_mode = ( strcmp ( base_name, dmenu_str ) == 0 );
|
||||
// Free the basename for dmenu detection.
|
||||
g_free ( base_name );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue