mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 07:00:30 +00:00
Fix CID 1351763
This commit is contained in:
parent
ce47165951
commit
f62ddc4b8c
@ -79,9 +79,11 @@ R_API char *r_anal_cond_to_string(RAnalCond *cond) {
|
||||
if ((out = malloc (val0len)))
|
||||
snprintf (out, val0len, "%s%s", cnd, val0);
|
||||
} else {
|
||||
int val0len = strlen (val0) + strlen (val1)+10;
|
||||
if ((out = malloc (val0len)))
|
||||
snprintf (out, val0len, "%s %s %s", val0, cnd, val1);
|
||||
if (val1) {
|
||||
int val0len = strlen (val0) + strlen (val1) + 10;
|
||||
if ((out = malloc (val0len)))
|
||||
snprintf (out, val0len, "%s %s %s", val0, cnd, val1);
|
||||
}
|
||||
}
|
||||
}
|
||||
free (val0);
|
||||
|
Loading…
Reference in New Issue
Block a user