git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a5467b
)
crypto: user - fix empty string test in report API
author
Mathias Krause
<minipli@googlemail.com>
Tue, 5 Feb 2013 17:19:14 +0000
(18:19 +0100)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Tue, 19 Feb 2013 12:27:04 +0000
(20:27 +0800)
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 <minipli@googlemail.com>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
No differences found