Browse Source

ckdb - uninitialised variables

master
kanoi 11 years ago
parent
commit
33fdf8327f
  1. 5
      src/ckdb.c

5
src/ckdb.c

@ -3601,7 +3601,6 @@ static bool workinfo_age(PGconn *conn, char *workinfoidstr, char *poolinstance,
if (conned) if (conned)
PQfinish(conn); PQfinish(conn);
bye:
if (ss_already || ss_failed || shares_dumped) { if (ss_already || ss_failed || shares_dumped) {
/* If all were already aged, and no shares /* If all were already aged, and no shares
* then we don't want a message */ * then we don't want a message */
@ -3614,7 +3613,7 @@ bye:
shares_dumped); shares_dumped);
} }
} }
bye:
return ok; return ok;
} }
@ -9218,7 +9217,7 @@ static void *socketer(__maybe_unused void *arg)
case CMD_LOGLEVEL: case CMD_LOGLEVEL:
if (!*id) { if (!*id) {
LOGDEBUG("Listener received loglevel, currently %d", LOGDEBUG("Listener received loglevel, currently %d",
oldloglevel); pi->ckp->loglevel);
snprintf(reply, sizeof(reply), snprintf(reply, sizeof(reply),
"%s.%ld.ok.loglevel currently %d", "%s.%ld.ok.loglevel currently %d",
id, now.tv_sec, id, now.tv_sec,

Loading…
Cancel
Save