Fix the check for an unsupported projection

This commit is contained in:
Eric Fischer 2016-06-01 15:51:55 -07:00
parent af412e2038
commit e1427ab9e4

View File

@ -1999,7 +1999,7 @@ int main(int argc, char **argv) {
break;
}
}
if (p == NULL) {
if (p->name == NULL) {
fprintf(stderr, "Unknown projection (-s): %s\n", optarg);
exit(EXIT_FAILURE);
}