summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorSubha sree Mohankumar <smohanku@redhat.com>2017-11-11 00:12:10 +0530
committerJeff Darcy <jeff@pl.atyp.us>2017-11-13 16:34:39 +0000
commit6343b16f53c2563c238a5b42e0e256d7091a7100 (patch)
tree644ada5468c793569c465695132b149f7e07e782 /libglusterfs
parent4ded7d84ccd4a5391788a66029bf5c2424f6e08a (diff)
libglusterfs:UNUSED VALUE coverity fix
Problem : Overwriting previous write to "ret" with value "EVENT_SEND_OK" before itr can be used. Fix: The value of ret is used in out. Change-Id: I2cdb32e441c85c94de30de89a7a4121fd54d1acd BUG: 789278 Signed-off-by: Subha sree Mohankumar <smohanku@redhat.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/events.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfs/src/events.c b/libglusterfs/src/events.c
index 7c20c32ad6e..5a1b4c06e57 100644
--- a/libglusterfs/src/events.c
+++ b/libglusterfs/src/events.c
@@ -108,6 +108,7 @@ _gf_event (eventtypes_t event, const char *fmt, ...)
if (sendto (sock, eventstr, strlen (eventstr),
0, (struct sockaddr *)&server, sizeof (server)) <= 0) {
ret = EVENT_ERROR_SEND;
+ goto out;
}
ret = EVENT_SEND_OK;