No need to put a block round the later if; this is a natural place to apply else if: <code>
if (inputdir != NULL) { ... }
else if (strcmp(INPUTDIR, "default") == 0) { ... }
else { ... }
</code>