separator : ne pas parser argv[2] s'il est nul

This commit is contained in:
Hippolyte Chauvin 2023-11-23 10:54:08 +01:00
parent c9d485472e
commit 44c60d8bb7

View file

@ -40,7 +40,7 @@ int main(int argc, char *argv[]) {
name = "";
}
if (argc >= 3) {
if (argc >= 3 && *argv[2] != 0) {
separation_character = argv[2];
} else {
separation_character = "=";