check if config_path != NULL

This commit is contained in:
Nour 2024-05-09 21:35:30 +03:00 committed by GitHub
parent 80c93d87d4
commit 8c13b6fdc9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -229,6 +229,9 @@ int main(int argc, char **argv) {
exit(EXIT_SUCCESS);
break;
case 'c': // config
if (config_path != NULL) {
free(config_path);
}
config_path = strdup(optarg);
break;
case 'C': // validate