Fix an embarassing bug in make_message().
authorAndre Noll <maan@systemlinux.org>
Wed, 4 Jun 2008 15:35:23 +0000 (17:35 +0200)
committerAndre Noll <maan@systemlinux.org>
Wed, 4 Jun 2008 15:35:23 +0000 (17:35 +0200)
Outch.

osl.c

diff --git a/osl.c b/osl.c
index c0e70cf4ce310468058b82481dea8045b3853ef2..d41923f0f602b75c20eb7d6bcfec5b779896428d 100644 (file)
--- a/osl.c
+++ b/osl.c
@@ -57,6 +57,7 @@ static __must_check __printf_1_2 __malloc char *make_message(const char *fmt, ..
                        free(p);
                        return NULL;
                }
                        free(p);
                        return NULL;
                }
+               p = q;
        }
        return p;
 }
        }
        return p;
 }