summaryrefslogtreecommitdiff
path: root/storage/connect/value.cpp
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2019-04-19 13:15:46 +0300
committerMonty <monty@mariadb.org>2019-04-19 13:17:14 +0300
commita024649081412c58039b19998a26937ade2796f8 (patch)
treeb6d7c0902a81d8efc5f4f2a9b9166e14ccc13325 /storage/connect/value.cpp
parent4233b28489826ffeebcc828aa6eb171d6f57ccdb (diff)
downloadmariadb-git-a024649081412c58039b19998a26937ade2796f8.tar.gz
Fixed compiler warnings form gcc 7.3.1
Diffstat (limited to 'storage/connect/value.cpp')
-rw-r--r--storage/connect/value.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/connect/value.cpp b/storage/connect/value.cpp
index e159efaa989..ac1a67e3ca7 100644
--- a/storage/connect/value.cpp
+++ b/storage/connect/value.cpp
@@ -2599,12 +2599,13 @@ bool DTVAL::MakeDate(PGLOBAL g, int *val, int nval)
// Pass g to have an error return or NULL to set invalid dates to 0
if (MakeTime(&datm))
+ {
if (g) {
strcpy(g->Message, MSG(BAD_DATETIME));
rc = true;
} else
Tval = 0;
-
+ }
return rc;
} // end of MakeDate