fix compare argument for address type.

Submitted by: issei10193 (via Twitter)
This commit is contained in:
Takanori Watanabe 2015-09-09 13:24:39 +00:00
parent 8fe99e427f
commit 05e526fb5a

View File

@ -88,7 +88,7 @@ le_set_scan_param(int s, int argc, char *argv[])
if (strcmp(argv[3], "public") == 0)
adrtype = 0;
else if (strcmp(argv[0], "random") == 0)
else if (strcmp(argv[3], "random") == 0)
adrtype = 1;
else
return USAGE;