trace: Fix out-of-memory testing logic
authorJouni Malinen <j@w1.fi>
Sat, 10 Jan 2015 15:31:37 +0000 (17:31 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 10 Jan 2015 15:35:53 +0000 (17:35 +0200)
commit8a42a076aaf26e564f2407555b452136bdbde5f7
tree8ae23f760f8809935d6b8a14aefe9ad9a209c861
parentc2096d9981875368e678e3ef3d635772f9136435
trace: Fix out-of-memory testing logic

data.function needs to be set for the return value to be of any use and
strcmp won't work with NULL pointer either. (CID 99907)

Signed-off-by: Jouni Malinen <j@w1.fi>
src/utils/trace.c