summary refs log tree commit diff stats
path: root/util/qemu-thread-posix.c
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2015-03-07 10:14:30 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2015-03-10 10:49:25 +0100
commit532cee4184877053398a2bdae4edc965084fc79e (patch)
tree0d0420132f9255b7e4cbdb2c5153a7657bae8f03 /util/qemu-thread-posix.c
parent277263e1b320d759a760ba6c5ea75ec268f929e5 (diff)
downloadfocaccia-qemu-532cee4184877053398a2bdae4edc965084fc79e.tar.gz
focaccia-qemu-532cee4184877053398a2bdae4edc965084fc79e.zip
iscsi: Fix check for username
The variable user in struct iscsi_url is a character array, not a pointer.
Therefore its address will never be NULL.

clang reports this error:

block/iscsi.c:1329:20: warning:
 comparison of array 'iscsi_url->user' not equal to a null pointer
 is always true [-Wtautological-pointer-compare]

Reviewed-by: Peter Lieven <pl@kamp.de>
Acked-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Message-Id: <1425719670-5486-1-git-send-email-sw@weilnetz.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'util/qemu-thread-posix.c')
0 files changed, 0 insertions, 0 deletions