diff options
author | marko@hundin.mysql.fi <> | 2005-06-20 11:06:20 +0300 |
---|---|---|
committer | marko@hundin.mysql.fi <> | 2005-06-20 11:06:20 +0300 |
commit | f70798884cb3754b4e1eb269f0609a3fe95c2f3a (patch) | |
tree | a7bcccbfa761cdaa1d18da7d7f17786a21b8ed60 /innobase/row | |
parent | 85515b579e57b10c188145b397a63f08c84fbe3e (diff) | |
download | mariadb-git-f70798884cb3754b4e1eb269f0609a3fe95c2f3a.tar.gz |
InnoDB: Remove warnings detected by GCC 4.0.0
Diffstat (limited to 'innobase/row')
-rw-r--r-- | innobase/row/row0sel.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/innobase/row/row0sel.c b/innobase/row/row0sel.c index a2257e0b72e..c7a548fe448 100644 --- a/innobase/row/row0sel.c +++ b/innobase/row/row0sel.c @@ -630,6 +630,8 @@ row_sel_get_clust_rec( ulint* offsets = offsets_; *offsets_ = (sizeof offsets_) / sizeof *offsets_; + *out_rec = NULL; + offsets = rec_get_offsets(rec, btr_pcur_get_btr_cur(&plan->pcur)->index, offsets, ULINT_UNDEFINED, &heap); @@ -663,8 +665,6 @@ row_sel_get_clust_rec( clustered index record did not exist in the read view of trx. */ - clust_rec = NULL; - goto func_exit; } @@ -733,7 +733,6 @@ row_sel_get_clust_rec( if ((old_vers || rec_get_deleted_flag(rec, plan->table->comp)) && !row_sel_sec_rec_is_for_clust_rec(rec, plan->index, clust_rec, index)) { - clust_rec = NULL; goto func_exit; } } @@ -742,8 +741,8 @@ row_sel_get_clust_rec( row_sel_fetch_columns(index, clust_rec, offsets, UT_LIST_GET_FIRST(plan->columns)); -func_exit: *out_rec = clust_rec; +func_exit: err = DB_SUCCESS; err_exit: if (UNIV_LIKELY_NULL(heap)) { |