commit:     1a018e80058697408ce95142ffc292a5929fcc2b
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  3 10:33:13 2013 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sun Mar  3 10:33:13 2013 +0000
URL:        https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=1a018e80

sb_efuncs: fix thinko in message patch

Forgot to assign the fallback open to the fd.  Whee.

Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>

 libsbutil/sb_efuncs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libsbutil/sb_efuncs.c b/libsbutil/sb_efuncs.c
index 80064c6..c855257 100644
--- a/libsbutil/sb_efuncs.c
+++ b/libsbutil/sb_efuncs.c
@@ -43,7 +43,7 @@ static void sb_vefunc(const char *prog, const char *color, 
const char *format, v
        else
                fd = -1;
        if (fd == -1)
-               sbio_open(sbio_fallback_path, O_WRONLY|O_CLOEXEC, 0);
+               fd = sbio_open(sbio_fallback_path, O_WRONLY|O_CLOEXEC, 0);
        fp = fd == -1 ? NULL : fdopen(fd, "ae");
        if (!fp)
                fp = stderr;

Reply via email to