fix bug with arg is NULL in uicb_client_tag()
This commit is contained in:
parent
7808e2f8b0
commit
037d6aea59
10
tag.c
10
tag.c
|
@ -76,10 +76,12 @@ uicb_client_tag(awesome_config *awesomeconf,
|
||||||
for(i = 0; i < awesomeconf->ntags; i++)
|
for(i = 0; i < awesomeconf->ntags; i++)
|
||||||
sel->tags[i] = arg == NULL;
|
sel->tags[i] = arg == NULL;
|
||||||
|
|
||||||
i = arg ? atoi(arg) - 1 : 0;
|
if(arg)
|
||||||
|
{
|
||||||
if(i >= 0 && i < awesomeconf->ntags)
|
i = atoi(arg) - 1;
|
||||||
sel->tags[i] = True;
|
if(i >= 0 && i < awesomeconf->ntags)
|
||||||
|
sel->tags[i] = True;
|
||||||
|
}
|
||||||
|
|
||||||
saveprops(sel, awesomeconf->ntags);
|
saveprops(sel, awesomeconf->ntags);
|
||||||
arrange(awesomeconf);
|
arrange(awesomeconf);
|
||||||
|
|
Loading…
Reference in New Issue