Fix few more covs (#12303)

This commit is contained in:
dav1901 2018-11-23 21:50:23 +02:00 committed by radare
parent 191ef84f03
commit ef42e5a205
4 changed files with 4 additions and 1 deletions

View File

@ -26,7 +26,7 @@ static int disassemble(RAsm *a, RAsmOp *op, const ut8 *buf, int len) {
static int omode = -1;
static int obits = 32;
cs_insn* insn = NULL;
int ret, n = 0;
int ret = 0, n = 0;
cs_mode mode = a->big_endian? CS_MODE_BIG_ENDIAN: CS_MODE_LITTLE_ENDIAN;
if (mode != omode || a->bits != obits) {
cs_close (&cd);

View File

@ -1189,6 +1189,7 @@ repeat:
}
if (!xrefs || !r_list_length (xrefs)) {
r_list_free (xrefs);
xrefs = NULL;
r_cons_printf ("(no refs)\n");
// return 0;
}

View File

@ -55,6 +55,7 @@ static int lang_c_file(RLang *lang, const char *file) {
" $(pkg-config --cflags --libs r_core)", cc, file, libpath, libname);
free (cc);
if (r_sandbox_system (buf, 1) != 0) {
free (buf);
return false;
}
free (buf);

View File

@ -44,6 +44,7 @@ static int lang_rust_file(RLang *lang, const char *file) {
cc, file, libpath, libname);
free (cc);
if (r_sandbox_system (cmd, 1) != 0) {
free (cmd);
return false;
}
free (cmd);