[PATCH] os: xnfalloc never returns NULL.
Jesse Adkins
jesse_adkins7 at yahoo.com
Thu Jul 1 13:22:14 PDT 2010
Signed-off-by: Jesse Adkins <jesse_adkins7 at yahoo.com>
---
os/xprintf.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/os/xprintf.c b/os/xprintf.c
index 71a4424..9196e7c 100644
--- a/os/xprintf.c
+++ b/os/xprintf.c
@@ -85,8 +85,6 @@ XNFvprintf(const char *format, va_list va)
va_end(va2);
ret = (char *)xnfalloc(size + 1);
- if (ret == NULL)
- return NULL;
vsnprintf(ret, size + 1, format, va);
ret[size] = 0;
--
1.7.0.4
More information about the xorg-devel
mailing list