Needed by follow-up patch.
Sponsored by: The FreeBSD Foundation MFC after: 1 day
For such simple code, it's IMO better to just use an if-statement:
if (arg != NULL) { n = strtol(...) ... }
For this to work correctly, you need to set errno = 0 before the strtol() call.
Address Mark's comments.