From 67b2c424cefbecfe8581044703ba178c61c0ece1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Thu, 27 May 2010 17:36:33 +0200 Subject: [PATCH] s4:scripting/python/modules.c - fix "asprintf" calls --- source4/scripting/python/modules.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source4/scripting/python/modules.c b/source4/scripting/python/modules.c index 788df91bb4c..6cc3ca58d28 100644 --- a/source4/scripting/python/modules.c +++ b/source4/scripting/python/modules.c @@ -94,14 +94,18 @@ bool py_update_path(const char *bindir) return false; } - asprintf(&newpath, "%s/../scripting/python", bindir); + if (asprintf(&newpath, "%s/../scripting/python", bindir) < 0) { + return false; + } if (!PySys_PathPrepend(py_path, newpath)) { free(newpath); return false; } free(newpath); - asprintf(&newpath, "%s/python", bindir); + if (asprintf(&newpath, "%s/python", bindir) < 0) { + return false; + } if (!PySys_PathPrepend(py_path, newpath)) { free(newpath); return false; -- 2.11.4.GIT