mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-30 08:30:53 +00:00
5b0b9d09a9
* TODO: Unify all this logic into a single function
18 lines
414 B
C
18 lines
414 B
C
/* radare - LGPL - Copyright 2009-2023 - pancake */
|
|
|
|
#include <r_main.h>
|
|
|
|
int main(int argc, const char **argv) {
|
|
char *ea = r_sys_getenv ("RABIN2_ARGS");
|
|
if (R_STR_ISNOTEMPTY (ea)) {
|
|
char **argv = r_str_argv (ea, &argc);
|
|
r_sys_setenv ("RABIN2_ARGS", NULL);
|
|
int res = r_main_rabin2 (argc, (const char **)argv);
|
|
free (ea);
|
|
free (argv);
|
|
return res;
|
|
}
|
|
free (ea);
|
|
return r_main_rabin2 (argc, argv);
|
|
}
|