[U-Boot] [PATCH 3/5] net: Make copy_filename() accept NULL src

Alexander Graf agraf at suse.de
Wed Jul 4 09:25:22 UTC 2018


On 07/04/2018 02:36 AM, Joe Hershberger wrote:
> Rather than crashing, check the src ptr and set dst to empty string.
>
> Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>

Wouldn't it make more sense to check for the existence outside at the 
caller's side? That way it's much easier to see what really is happening.


Alex



More information about the U-Boot mailing list