diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2015-02-11 17:33:33 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-02-16 08:48:00 +0100 |
commit | 9e0ff75e5158c7dbb65ee447382bbdf4cafbef8b (patch) | |
tree | 5a5039ddfbc44a793fd37f29f3dfa6a9b17ff909 | |
parent | 0e7d6f608339029404efd025ae9b8965ffe60087 (diff) |
vnc: fix coverity warning
vnc_display_local_addr will not be called with an invalid display id.
Add assert() to silence coverity warning about a null pointer dereference.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r-- | ui/vnc.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -3248,6 +3248,7 @@ char *vnc_display_local_addr(const char *id) { VncDisplay *vs = vnc_display_find(id); + assert(vs); return vnc_socket_local_addr("%s:%s", vs->lsock); } |