mirror of
https://github.com/lbonn/rofi
synced 2024-12-03 17:19:36 +00:00
parent
bde8175d39
commit
c45fc38856
1 changed files with 5 additions and 0 deletions
|
@ -67,6 +67,11 @@ static void combi_mode_parse_switchers(Mode *sw) {
|
|||
// Split token on ','. This modifies switcher_str.
|
||||
for (char *token = strtok_r(switcher_str, sep, &savept); token != NULL;
|
||||
token = strtok_r(NULL, sep, &savept)) {
|
||||
/* Check against recursion. */
|
||||
if ( g_strcmp0(token, sw->name) == 0 ){
|
||||
g_warning("You cannot add '%s' to the list of combined modi.", sw->name);
|
||||
continue;
|
||||
}
|
||||
// Resize and add entry.
|
||||
pd->switchers = (CombiMode *)g_realloc(
|
||||
pd->switchers, sizeof(CombiMode) * (pd->num_switchers + 1));
|
||||
|
|
Loading…
Reference in a new issue