mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
MDEV-29578 Fix CONNECT build warnings
Fix a couple of build warnings that fire with CONNECT engine.
This commit is contained in:
parent
055cb3fcd1
commit
fa5f26b422
2 changed files with 5 additions and 5 deletions
|
@ -3571,14 +3571,14 @@ char *bson_item_merge(UDF_INIT *initid, UDF_ARGS *args, char *result,
|
|||
if (!CheckMemory(g, initid, args, 2, false, false, true)) {
|
||||
JTYP type;
|
||||
BJNX bnx(g);
|
||||
PBVAL jvp, top = NULL;
|
||||
PBVAL jvp = NULL, top = NULL;
|
||||
PBVAL jsp[2] = {NULL, NULL};
|
||||
|
||||
for (int i = 0; i < 2; i++) {
|
||||
jvp = bnx.MakeValue(args, i, true);
|
||||
|
||||
if (i) {
|
||||
if (jvp->Type != type) {
|
||||
if (jvp && (jvp->Type != type)) {
|
||||
PUSH_WARNING("Argument types mismatch");
|
||||
goto fin;
|
||||
} // endif type
|
||||
|
@ -5722,14 +5722,14 @@ char *bbin_item_merge(UDF_INIT *initid, UDF_ARGS *args, char *result,
|
|||
if (!CheckMemory(g, initid, args, 2, false, false, true)) {
|
||||
JTYP type;
|
||||
BJNX bnx(g);
|
||||
PBVAL jvp, top = NULL;
|
||||
PBVAL jvp = NULL, top = NULL;
|
||||
PBVAL jsp[2] = {NULL, NULL};
|
||||
|
||||
for (int i = 0; i < 2; i++) {
|
||||
if (i) {
|
||||
jvp = bnx.MakeValue(args, i, true);
|
||||
|
||||
if (jvp->Type != type) {
|
||||
if (jvp && (jvp->Type != type)) {
|
||||
PUSH_WARNING("Argument types mismatch");
|
||||
goto fin;
|
||||
} // endif type
|
||||
|
|
|
@ -244,7 +244,7 @@ PQRYRES DBFColumns(PGLOBAL g, PCSZ dp, PCSZ fn, PTOS topt, bool info)
|
|||
int rc, type, len, field, fields;
|
||||
bool bad, mul;
|
||||
PCSZ target, pwd;
|
||||
DBFHEADER mainhead, *hp;
|
||||
DBFHEADER mainhead, *hp = NULL;
|
||||
DESCRIPTOR thisfield, *tfp;
|
||||
FILE *infile = NULL;
|
||||
UNZIPUTL *zutp = NULL;
|
||||
|
|
Loading…
Reference in a new issue