bail out nicely if strdup() returns NULL, removed trailing whitespace
1 file changed