Skip to content

Commit

Permalink
Update swoole_table.h
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf authored Oct 27, 2021
1 parent 937b37e commit d45b508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/swoole_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ class Table {
}

void init_row(TableRow *new_row, const char *key, int keylen) {
sw_memset_zero((void *)new_row + offsetof(TableRow, active), sizeof(TableRow) - offsetof(TableRow, active));
sw_memset_zero((char *) new_row + offsetof(TableRow, active), sizeof(TableRow) - offsetof(TableRow, active));
memcpy(new_row->key, key, keylen);
new_row->key[keylen] = '\0';
new_row->key_len = keylen;
Expand Down

0 comments on commit d45b508

Please sign in to comment.