net: Make copy_filename() accept NULL src
authorJoe Hershberger <joe.hershberger@ni.com>
Wed, 4 Jul 2018 00:36:41 +0000 (19:36 -0500)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 26 Jul 2018 19:08:20 +0000 (14:08 -0500)
commit16cf145fd659a01c5db7f286e8c9a4700f736920
treefbc8049d19041b7d8c4073108e23a5aeb7a11aa6
parent3855cad62342c3268465bc760e2bd7e6d0ce7f31
net: Make copy_filename() accept NULL src

Rather than crashing, check the src ptr and set dst to empty string.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
net/net.c