summaryrefslogtreecommitdiffstats
path: root/libfdisk/src/context.c
diff options
context:
space:
mode:
authorKarel Zak2019-07-15 11:37:17 +0200
committerKarel Zak2019-07-15 11:37:17 +0200
commit6744302ce5b23ef19d7cfaa20cb53d27642ea8ac (patch)
treecf0b984c0ecc6b52e39caf2e39d7f4cc6f9b252a /libfdisk/src/context.c
parentbuild-sys: Include <stdlib.h> in ./configure wchar_t test (diff)
parentlibblkid: fix address sanitizer issues (diff)
downloadkernel-qcow2-util-linux-6744302ce5b23ef19d7cfaa20cb53d27642ea8ac.tar.gz
kernel-qcow2-util-linux-6744302ce5b23ef19d7cfaa20cb53d27642ea8ac.tar.xz
kernel-qcow2-util-linux-6744302ce5b23ef19d7cfaa20cb53d27642ea8ac.zip
Merge branch '2019wk27' of https://github.com/kerolasa/util-linux
* '2019wk27' of https://github.com/kerolasa/util-linux: libblkid: fix address sanitizer issues libblkid: check number of test_blkid_save arguments correctly include/xalloc: ensure xstrdup() and xstrndup() returns nonnull attribute libmount: fix potential null pointer dereference libfdisk: fix variable shadowing lib/ttyutils: avoid checking same thing twice
Diffstat (limited to 'libfdisk/src/context.c')
-rw-r--r--libfdisk/src/context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfdisk/src/context.c b/libfdisk/src/context.c
index 3677648e9..770aa4d52 100644
--- a/libfdisk/src/context.c
+++ b/libfdisk/src/context.c
@@ -675,7 +675,7 @@ int fdisk_assign_device(struct fdisk_context *cxt,
fd = open(fname, (readonly ? O_RDONLY : O_RDWR ) | O_CLOEXEC);
if (fd < 0) {
- int rc = -errno;
+ rc = -errno;
DBG(CXT, ul_debugobj(cxt, "failed to assign device [rc=%d]", rc));
return rc;
}