[Openvas-plugins] Superfluous calls to string() in plugins

Jan-Oliver Wagner Jan-Oliver.Wagner at greenbone.net
Thu Sep 22 11:04:19 CEST 2011


On Thursday, 22. September 2011, Thomas Reinke wrote:
> Be careful of one thing, iirc there is a difference between
> 
> a = "hi\n";
> 
> and
> 
> a = string("hi\n");
> 
> The first, iirc, is a 4 character string nil terminated. The
> second one is a 3 character string ('h', 'i', newline) nil
> terminated.

Isn't 'hi\n' == string("hi\n") ?

-- 
Dr. Jan-Oliver Wagner |  ++49-541-335084-0  |  http://www.greenbone.net/
Greenbone Networks GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 202460
Geschäftsführer: Lukas Grunwald, Dr. Jan-Oliver Wagner


More information about the Openvas-plugins mailing list