defs: fix strscpy null pointer dereference
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 24 Oct 2012 13:22:18 +0000 (15:22 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 24 Oct 2012 13:23:07 +0000 (15:23 +0200)
commitd7e0e891cd5343475f6c3036f3372221a859af5a
tree0bcea6afb2097325af85f7833ae0963b6837f2f5
parent545269ae0ef5aeb17289f4b5efa26427f7b28b6b
defs: fix strscpy null pointer dereference

Coverity:
CID 739649 (#1 of 1): Dereference after null check (FORWARD_NULL)
At (5): Passing null pointer "dest" to function
        "strncpy(char * restrict, char const * restrict, size_t)", which
        dereferences it.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/defs.h