Skip to content

Commit

Permalink
Use single quote for the qjs.call
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Oct 27, 2023
1 parent b036e1b commit 6e57ac7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libr/lang/p/qjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,9 @@ static JSValue r2call0(JSContext *ctx, JSValueConst this_val, int argc, JSValueC
const char *n = JS_ToCStringLen2 (ctx, &plen, argv[0], false);
int ret = 0;
if (R_STR_ISNOTEMPTY (n)) {
pm->core->lang->cmdf (pm->core, "\"\"e scr.null=true");
ret = pm->core->lang->cmdf (pm->core, "\"\"%s", n);
pm->core->lang->cmdf (pm->core, "\"\"e scr.null=false");
pm->core->lang->cmdf (pm->core, "'e scr.null=true");
ret = pm->core->lang->cmdf (pm->core, "'%s", n);
pm->core->lang->cmdf (pm->core, "'e scr.null=false");
}
// JS_FreeValue (ctx, argv[0]);
return JS_NewInt32 (ctx, ret);
Expand Down

0 comments on commit 6e57ac7

Please sign in to comment.