haxenme/nme — pull request #128 by joshua-jandyco (2014-05-21 03:31:47+00:00)
Title: Proper comparison of userAgent string for no user input

The previous PR didn't compare the string properly. It was checking for a null pointer but the val_string method will default strings to an empty string. Therefore strcmp needs to be used to compare the input string with "".