From: Mathias Krause Date: Tue, 5 Feb 2013 17:19:14 +0000 (+0100) Subject: crypto: user - fix empty string test in report API X-Git-Tag: v3.9-rc1~87^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e336ed9647b06e3bb52995dbc51101cbdf39f2a2;p=pandora-kernel.git crypto: user - fix empty string test in report API The current test for empty strings fails because it is testing the address of a field, not a pointer. So the test will always be true. Test the first character in the string to not be null instead. Signed-off-by: Mathias Krause Cc: Steffen Klassert Signed-off-by: Herbert Xu --- Reading git-diff-tree failed