Skip to content

Commit d875c50

Browse files
committed
MDEV-17841 fixup: GCC -Wmaybe-uninitialized
Let us remove a redundant condition when the S3 plugin is disabled during compilation time.
1 parent 42609c2 commit d875c50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/maria/ma_open.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,9 @@ MARIA_HA *maria_open(const char *name, int mode, uint open_flags,
296296

297297
#ifndef WITH_S3_STORAGE_ENGINE
298298
DBUG_ASSERT(!s3);
299-
#endif /* WITH_S3_STORAGE_ENGINE */
300-
299+
#else
301300
if (!s3)
301+
#endif /* WITH_S3_STORAGE_ENGINE */
302302
{
303303
realpath_err= my_realpath(name_buff, fn_format(org_name, name, "",
304304
MARIA_NAME_IEXT,

0 commit comments

Comments
 (0)