mirror of
https://github.com/MariaDB/server.git
synced 2026-04-19 06:45:32 +02:00
Fixed some errors & warnings found by clang
- pcretest.c could use macro with side effect - maria_chk could access freed memory - Initialized some variables that could be accessed uninitalized - Fixed compiler warning in my_atomic-t.c
This commit is contained in:
parent
5fa2eb6f3d
commit
dbac2039e8
5 changed files with 9 additions and 6 deletions
2
storage/mroonga/vendor/groonga/lib/ts.c
vendored
2
storage/mroonga/vendor/groonga/lib/ts.c
vendored
|
|
@ -683,7 +683,7 @@ static grn_rc
|
|||
grn_ts_select_output(grn_ctx *ctx, grn_obj *table, grn_ts_str str,
|
||||
const grn_ts_record *in, size_t n_in, size_t n_hits)
|
||||
{
|
||||
grn_ts_writer *writer;
|
||||
grn_ts_writer *writer= 0;
|
||||
grn_rc rc = grn_ts_writer_open(ctx, table, str, &writer);
|
||||
if (rc != GRN_SUCCESS) {
|
||||
return rc;
|
||||
|
|
|
|||
|
|
@ -5173,7 +5173,7 @@ grn_ts_expr_node_deref(grn_ctx *ctx, grn_ts_expr_node **node_ptr)
|
|||
{
|
||||
grn_ts_expr_node *node = *node_ptr, **in_ptr = NULL;
|
||||
while ((node->data_kind & ~GRN_TS_VECTOR_FLAG) == GRN_TS_REF) {
|
||||
grn_ts_expr_node *new_node;
|
||||
grn_ts_expr_node *new_node= 0;
|
||||
grn_rc rc = grn_ts_expr_node_deref_once(ctx, node, &new_node);
|
||||
if (rc != GRN_SUCCESS) {
|
||||
if (in_ptr) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue