mirror of
https://github.com/swaywm/sway.git
synced 2026-04-18 06:46:56 -04:00
check if config_path != NULL
This commit is contained in:
parent
80c93d87d4
commit
8c13b6fdc9
1 changed files with 3 additions and 0 deletions
|
|
@ -229,6 +229,9 @@ int main(int argc, char **argv) {
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
break;
|
break;
|
||||||
case 'c': // config
|
case 'c': // config
|
||||||
|
if (config_path != NULL) {
|
||||||
|
free(config_path);
|
||||||
|
}
|
||||||
config_path = strdup(optarg);
|
config_path = strdup(optarg);
|
||||||
break;
|
break;
|
||||||
case 'C': // validate
|
case 'C': // validate
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue