mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-06 13:29:46 +00:00
Fix null callback issue in io.self
This commit is contained in:
parent
56b4b75277
commit
f23336b393
@ -251,7 +251,11 @@ static int __system(RIO *io, RIODesc *fd, const char *cmd) {
|
||||
ut64 a0 = r_num_math (NULL, r_str_word_get0 (argv, 1));
|
||||
ut64 a1 = r_num_math (NULL, r_str_word_get0 (argv, 2));
|
||||
ut64 a2 = r_num_math (NULL, r_str_word_get0 (argv, 3));
|
||||
if (cb) {
|
||||
result = cb (a0, a1, a2);
|
||||
} else {
|
||||
eprintf ("No callback defined\n");
|
||||
}
|
||||
} else if (argc == 5) {
|
||||
size_t (*cb)(size_t a0, size_t a1, size_t a2, size_t a3) = \
|
||||
(size_t(*)(size_t,size_t,size_t,size_t))cbptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user