base: Remove unused variable assignment in JSON string parsing
This commit is contained in:
@@ -893,7 +893,7 @@ parse_string(struct parse_ctx *ctx)
|
|||||||
continue; /* This will cause p0 to be realloc'ed */
|
continue; /* This will cause p0 to be realloc'ed */
|
||||||
}
|
}
|
||||||
p_save = ctx->p;
|
p_save = ctx->p;
|
||||||
ctop = cbot = -3;
|
cbot = -3;
|
||||||
ctop = unescape_unicode(ctx);
|
ctop = unescape_unicode(ctx);
|
||||||
if (ctop == -1 && strict)
|
if (ctop == -1 && strict)
|
||||||
return parse_string_error(ctx, p0, "Invalid escaped Unicode");
|
return parse_string_error(ctx, p0, "Invalid escaped Unicode");
|
||||||
|
@@ -227,6 +227,8 @@ open_syslog(heim_context context,
|
|||||||
close_syslog, sd);
|
close_syslog, sd);
|
||||||
if (ret)
|
if (ret)
|
||||||
free(sd);
|
free(sd);
|
||||||
|
else
|
||||||
|
sd = NULL;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -348,6 +350,7 @@ open_file(heim_context context, heim_log_facility *fac, int min, int max,
|
|||||||
free(fd);
|
free(fd);
|
||||||
} else if (disp & FILEDISP_KEEPOPEN) {
|
} else if (disp & FILEDISP_KEEPOPEN) {
|
||||||
log_file(context, NULL, NULL, fd);
|
log_file(context, NULL, NULL, fd);
|
||||||
|
fd = NULL;
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user