mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-11 15:04:23 +00:00
Fix #4663 - segfault in r2 -d
This commit is contained in:
parent
7c3c865ef8
commit
a1eb92966e
@ -444,6 +444,10 @@ int main(int argc, char **argv, char **envp) {
|
||||
return main_help (help > 1? 2: 0);
|
||||
}
|
||||
if (debug == 1) {
|
||||
if (optind >= argc) {
|
||||
eprintf ("Missing argument for -d\n");
|
||||
return 1;
|
||||
}
|
||||
char *uri = strdup (argv[optind]);
|
||||
char *p = strstr (uri, "://");
|
||||
if (p) {
|
||||
|
Loading…
Reference in New Issue
Block a user