Browse Source

Merge branch 'master' of bitbucket.org:ckolivas/ckpool

master
Con Kolivas 9 years ago
parent
commit
304f6f0937
  1. 10
      src/ckdb.c
  2. 2
      src/ckdb.h

10
src/ckdb.c

@ -2783,14 +2783,13 @@ static enum cmd_values breakdown(K_ITEM **ml_item, char *buf, tv_t *now,
while (*end && *end != JSON_ARRAY_END) while (*end && *end != JSON_ARRAY_END)
end++; end++;
if (end < next+1) { if (end < next+1) {
LOGERR("JSON '%s' zero length value " LOGWARNING("JSON '%s' zero length array"
"was:%.32s... buf=%.32s...", " was:%.32s... buf=%.32s...",
transfer->name, transfer->name,
st = safe_text(was), st = safe_text(was),
st2 = safe_text(buf)); st2 = safe_text(buf));
FREENULL(st); FREENULL(st);
FREENULL(st2); FREENULL(st2);
goto nogood;
} }
siz = end - next; siz = end - next;
end++; end++;
@ -2812,14 +2811,13 @@ static enum cmd_values breakdown(K_ITEM **ml_item, char *buf, tv_t *now,
goto nogood; goto nogood;
} }
if (next == end) { if (next == end) {
LOGERR("JSON '%s' zero length value " LOGWARNING("JSON '%s' zero length value"
"was:%.32s... buf=%.32s...", " was:%.32s... buf=%.32s...",
transfer->name, transfer->name,
st = safe_text(was), st = safe_text(was),
st2 = safe_text(buf)); st2 = safe_text(buf));
FREENULL(st); FREENULL(st);
FREENULL(st2); FREENULL(st2);
goto nogood;
} }
siz = end - next; siz = end - next;
} }

2
src/ckdb.h

@ -55,7 +55,7 @@
#define DB_VLOCK "1" #define DB_VLOCK "1"
#define DB_VERSION "1.0.4" #define DB_VERSION "1.0.4"
#define CKDB_VERSION DB_VERSION"-1.603" #define CKDB_VERSION DB_VERSION"-1.610"
#define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL " - from %s %s() line %d"
#define WHERE_FFL_HERE __FILE__, __func__, __LINE__ #define WHERE_FFL_HERE __FILE__, __func__, __LINE__

Loading…
Cancel
Save