Fix regression in feat_grep

This commit is contained in:
pancake 2017-11-04 16:14:36 +01:00
parent 7b673f6f0e
commit 1db0c10f8e
2 changed files with 2 additions and 2 deletions

View File

@ -243,7 +243,7 @@ while_end:
ptr2 = strchr_ns (ptr, ':'); // line number
cons->grep.range_line = 2; // there is not :
if (ptr2 && ptr2[1] != ':' && isalnum(ptr2[1])) {
if (ptr2 && ptr2[1] != ':' && ptr2[1]) {
*ptr2 = '\0';
char *p, *token = ptr + 1;
p = strstr (token, "..");

View File

@ -2205,7 +2205,7 @@ R_API int r_core_config_init(RCore *core) {
SETPREF ("asm.slow", "true", "Perform slow analysis operations in disasm");
SETPREF ("asm.decode", "false", "Use code analysis as a disassembler");
SETPREF ("asm.flgoff", "false", "Show offset in flags");
SETPREF ("asm.immstr", "true", "Show immediates values as strings");
SETPREF ("asm.immstr", "false", "Show immediates values as strings");
SETPREF ("asm.offless", "false", "Remove all offsets and constants from disassembly");
SETPREF ("asm.indent", "false", "Indent disassembly based on reflines depth");
SETI ("asm.indentspace", 2, "How many spaces to indent the code");