aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2015-06-05 15:43:10 +0200
committerPascal Quantin <pascal.quantin@gmail.com>2015-06-05 21:15:37 +0000
commit1ec868edddbca60e367f0681db8a5ee5aa32fe74 (patch)
tree2759a88e2b6bc3291b76f29894edde31c2b61124 /ui
parent244f2fbbf6c4167c75c4eb626aa8a73208ba3d8e (diff)
Fix a few issues reported by PVS-Studio
See http://www.viva64.com/en/b/0328/ for details Change-Id: Ic9ddfd690b49401c96cb8a4a277c671f9824be31 Reviewed-on: https://code.wireshark.org/review/8775 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk/sctp_byte_graph_dlg.c1
-rw-r--r--ui/voip_calls.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/ui/gtk/sctp_byte_graph_dlg.c b/ui/gtk/sctp_byte_graph_dlg.c
index c7f22a00e1..55a5bcd766 100644
--- a/ui/gtk/sctp_byte_graph_dlg.c
+++ b/ui/gtk/sctp_byte_graph_dlg.c
@@ -1516,7 +1516,6 @@ void create_byte_graph(guint16 dir, struct sctp_analyse* userdata)
struct sctp_udata *u_data;
u_data=(struct sctp_udata *)g_malloc(sizeof(struct sctp_udata));
- u_data->assoc=(sctp_assoc_info_t *)g_malloc(sizeof(sctp_assoc_info_t));
u_data->assoc=userdata->assoc;
u_data->io=NULL;
u_data->dir = dir;
diff --git a/ui/voip_calls.c b/ui/voip_calls.c
index c937b8c073..fcae969cff 100644
--- a/ui/voip_calls.c
+++ b/ui/voip_calls.c
@@ -1590,7 +1590,7 @@ q931_calls_packet(void *tap_offset_ptr, packet_info *pinfo, epan_dissect_t *edt,
/* check if the called number match a LRQ/LCF */
if ( (strcmp(callsinfo->to_identity, tmp_listinfo->to_identity)==0)
- && (memcmp(&tmp2_h323info->guid, &guid_allzero, GUID_LEN) == 0) ) {
+ && (memcmp(tmp2_h323info->guid, &guid_allzero, GUID_LEN) == 0) ) {
/* change the call graph to the LRQ/LCF to belong to this call */
callsinfo->npackets += change_call_num_graph(tapinfo, tmp_listinfo->call_num, callsinfo->call_num);