projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1eab483
)
prepare-root: Remove unused variable
author
Colin Walters
<walters@verbum.org>
Tue, 18 Aug 2020 23:35:38 +0000
(23:35 +0000)
committer
Colin Walters
<walters@verbum.org>
Tue, 18 Aug 2020 23:35:38 +0000
(23:35 +0000)
Should quiet Coverity.
src/switchroot/ostree-prepare-root.c
patch
|
blob
|
history
diff --git
a/src/switchroot/ostree-prepare-root.c
b/src/switchroot/ostree-prepare-root.c
index 8a68e1f4fa6a960460fc4ed52036c221643f580e..f7e4fe47c3670999b09d0d1cd36ae30572b5c52c 100644
(file)
--- a/
src/switchroot/ostree-prepare-root.c
+++ b/
src/switchroot/ostree-prepare-root.c
@@
-101,10
+101,9
@@
sysroot_is_configured_ro (const char *sysroot)
bool ret = false;
char *line = NULL;
size_t len = 0;
- ssize_t nread;
/* Note getline() will reuse the previous buffer */
bool in_sysroot = false;
- while (
(nread = getline (&line, &len, f)
) != -1)
+ while (
getline (&line, &len, f
) != -1)
{
/* This is an awful hack to avoid depending on GLib in the
* initramfs right now.