Make sure that "tmpnam" isn't NULL, but "n/a" before we try to use it in the regexp.