[U-Boot] [RFC 1/3] tools/env: Default to the config specified in FW_CONFIG_FILE

Mike Frysinger vapier at gentoo.org
Sat Dec 4 11:34:55 CET 2010


On Friday, December 03, 2010 23:28:51 Steve Sakoman wrote:
> +	if (!config_file || !strlen(config_file)) {

strlen is a bad bad idea.  if you only want to see if it's non-empty, check 
the first byte.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20101204/a2a72569/attachment.pgp 


More information about the U-Boot mailing list