remove uninitialized variable.

This commit is contained in:
Brian Wellington
2000-11-08 18:24:37 +00:00
parent 83081c08ef
commit 60a7fe5da1

View File

@@ -78,16 +78,15 @@ hex_decode_char(hex_decode_ctx_t *ctx, int c) {
return (ISC_R_BADHEX);
ctx->val[ctx->digits++] = s - hex;
if (ctx->digits == 2) {
int n;
unsigned char num;
num = (ctx->val[0] << 4) + (ctx->val[1]);
RETERR(mem_tobuffer(ctx->target, &num, 1));
if (ctx->length >= 0) {
if (n > ctx->length)
if (ctx->length == 0)
return (ISC_R_BADHEX);
else
ctx->length -= n;
ctx->length -= 1;
}
ctx->digits = 0;
}