From 937da4a74655d37369609b420c1d2363f2914f03 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Mon, 13 Aug 2018 15:39:29 +0500 Subject: [PATCH] src/Cedar/EtherLog.c: resolve possible null dereference found by coverity --- src/Cedar/EtherLog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Cedar/EtherLog.c b/src/Cedar/EtherLog.c index c32421e7..26ddf654 100644 --- a/src/Cedar/EtherLog.c +++ b/src/Cedar/EtherLog.c @@ -276,7 +276,7 @@ UINT EcConnect(char *host, UINT port, char *password, RPC **rpc) // RPC server function PACK *ElRpcServer(RPC *r, char *name, PACK *p) { - EL *e = (EL *)r->Param; + EL *e; PACK *ret; UINT err; bool ok; @@ -286,6 +286,7 @@ PACK *ElRpcServer(RPC *r, char *name, PACK *p) return NULL; } + e = (EL *)r->Param; ret = NewPack(); err = ERR_NO_ERROR; ok = false;