mirror of
https://github.com/samba-team/samba.git
synced 2025-07-26 03:42:04 +03:00
s4:scripting/python/modules.c - fix "asprintf" calls
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user