Skip to content

Commit

Permalink
fix str_void issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pikasTech committed Dec 17, 2023
1 parent 2cec7c4 commit 6c48ec3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion port/linux/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// "--gtest_filter=vm.run_file"
// "--gtest_filter=stddata.encode_decode"
// "--gtest_filter=packtool.packfiles_txt"
"--gtest_filter=flashdb.kvdb1"
"--gtest_filter=vm.str_issue"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
Expand Down
3 changes: 3 additions & 0 deletions src/PikaVM.c
Original file line number Diff line number Diff line change
Expand Up @@ -2170,6 +2170,9 @@ static Arg* VM_instruction_handler_STR(PikaObj* self,
PikaVMFrame* vm,
char* data,
Arg* arg_ret_reg) {
if (NULL == data) {
return arg_setStr(arg_ret_reg, "", "");
}
if (strIsContain(data, '\\')) {
Args buffs = {0};
size_t i_out = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/PikaVersion.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
#define PIKA_VERSION_MINOR 13
#define PIKA_VERSION_MICRO 1

#define PIKA_EDIT_TIME "2023/12/16 23:25:16"
#define PIKA_EDIT_TIME "2023/12/17 20:17:25"

0 comments on commit 6c48ec3

Please sign in to comment.