diff options
author | Colin Walters <walters@verbum.org> | 2017-10-05 14:45:40 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2017-10-05 14:45:40 -0400 |
commit | dea16cd8beff76867bd791b1b9c8b51df8a16057 (patch) | |
tree | cd24c88f418d8229959e5a616566a6a3cd7ba22a | |
parent | b72906dbe067aeee0edab627c9c8ada0a7d8e808 (diff) | |
download | libglnx-dea16cd8beff76867bd791b1b9c8b51df8a16057.tar.gz |
fdio: Squash compiler warning from previous commit
Oops.
-rw-r--r-- | glnx-fdio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/glnx-fdio.c b/glnx-fdio.c index 7dfa509..892be2a 100644 --- a/glnx-fdio.c +++ b/glnx-fdio.c @@ -141,14 +141,14 @@ glnx_renameat2_exchange (int olddirfd, const char *oldpath, #endif /* Fallback */ - { const char *old_tmp_name = glnx_strjoina (oldpath, ".XXXXXX"); - + { char *old_tmp_name_buf = glnx_strjoina (oldpath, ".XXXXXX"); /* This obviously isn't race-free, but doing better gets tricky, since if * we're here the kernel isn't likely to support RENAME_NOREPLACE either. * Anyways, upgrade the kernel. Failing that, avoid use of this function in * shared subdirectories like /tmp. */ - glnx_gen_temp_name (old_tmp_name); + glnx_gen_temp_name (old_tmp_name_buf); + const char *old_tmp_name = old_tmp_name_buf; /* Move old out of the way */ if (renameat (olddirfd, oldpath, olddirfd, old_tmp_name) < 0) |