Commit 75e39f3c authored by Marko Mäkelä's avatar Marko Mäkelä

Fix gcc-12 -O2 -Wmaybe-uninitialized

parent 0f56e21e
/*****************************************************************************
Copyright (c) 1995, 2021, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2014, 2021, MariaDB Corporation.
Copyright (c) 2014, 2022, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
......@@ -3316,9 +3316,10 @@ fil_make_filepath(
if (path != NULL) {
memcpy(full_name, path, path_len);
len = path_len;
}
full_name[len] = '\0';
os_normalize_path(full_name);
}
if (trim_name) {
/* Find the offset of the last DIR separator and set it to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment