Skip to content

Commit 8cafbb7

Browse files
floppymnavi-desu
authored andcommitted
librc: fix getline return value check
Bug: https://bugs.gentoo.org/939758 Fixes: 0702a06 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
1 parent 123872c commit 8cafbb7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/librc/librc-misc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ rc_proc_getent(const char *ent RC_UNUSED)
142142
return NULL;
143143

144144
i = 0;
145-
if ((size = getline(&proc, &i, fp) == -1)) {
145+
if ((size = getline(&proc, &i, fp)) == -1) {
146146
free(proc);
147147
return NULL;
148148
}

0 commit comments

Comments
 (0)