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

Mike Frysinger
2010-12-04T10:34:55Z

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