Bugfix: Correctly assign a number to workspaces starting with '0: ' (Thanks SardemFF7)
This commit is contained in:
parent
e7d6cd0f1c
commit
dfda878272
@ -53,7 +53,7 @@ Con *workspace_get(const char *num, bool *created) {
|
|||||||
long parsed_num = strtol(num, NULL, 10);
|
long parsed_num = strtol(num, NULL, 10);
|
||||||
if (parsed_num == LONG_MIN ||
|
if (parsed_num == LONG_MIN ||
|
||||||
parsed_num == LONG_MAX ||
|
parsed_num == LONG_MAX ||
|
||||||
parsed_num <= 0)
|
parsed_num < 0)
|
||||||
workspace->num = -1;
|
workspace->num = -1;
|
||||||
else workspace->num = parsed_num;
|
else workspace->num = parsed_num;
|
||||||
LOG("num = %d\n", workspace->num);
|
LOG("num = %d\n", workspace->num);
|
||||||
|
Loading…
Reference in New Issue
Block a user