gethostbyname call with 0 length arg

James Hawkins truiken at gmail.com
Sat Feb 4 10:44:19 CST 2006


On 2/3/06, Phil Goss <pagoss at gmail.com> wrote:
> This is what seems to have worked for me
>
> if(!name || !strlen(name)) {
>
>

The shortest way to do this is:

if (!name || !*name) {

--
James Hawkins



More information about the wine-devel mailing list