mirror of
https://github.com/samba-team/samba.git
synced 2025-12-10 04:23:50 +03:00
Finish adding strings to all talloc_init() calls.
Jeremy.
This commit is contained in:
@@ -63,7 +63,7 @@ PyObject *spoolss_enumprinterdrivers(PyObject *self, PyObject *args,
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (!(mem_ctx = talloc_init())) {
|
||||
if (!(mem_ctx = talloc_init("spoolss_enumprinterdrivers"))) {
|
||||
PyErr_SetString(
|
||||
spoolss_error, "unable to init talloc context\n");
|
||||
goto done;
|
||||
@@ -267,7 +267,7 @@ PyObject *spoolss_getprinterdriverdir(PyObject *self, PyObject *args,
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (!(mem_ctx = talloc_init())) {
|
||||
if (!(mem_ctx = talloc_init("spoolss_getprinterdriverdir"))) {
|
||||
PyErr_SetString(
|
||||
spoolss_error, "unable to init talloc context\n");
|
||||
goto done;
|
||||
@@ -335,7 +335,7 @@ PyObject *spoolss_addprinterdriver(PyObject *self, PyObject *args,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!(mem_ctx = talloc_init())) {
|
||||
if (!(mem_ctx = talloc_init("spoolss_addprinterdriver"))) {
|
||||
PyErr_SetString(
|
||||
spoolss_error, "unable to init talloc context\n");
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user