1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-29 15:42:04 +03:00

More cleanups of validation functions.

(This used to be commit a4790ba42c)
This commit is contained in:
Tim Potter
2002-10-21 04:47:29 +00:00
parent d897c63fb5
commit 771fc528eb
2 changed files with 66 additions and 19 deletions

View File

@ -74,6 +74,11 @@ BOOL py_to_FORM(FORM *form, PyObject *dict)
if (!to_struct(form, dict_copy, py_FORM))
goto done;
/* Careful! We can't call PyString_AsString(obj) then delete
obj and still expect to have our pointer pointing somewhere
useful. */
obj = PyDict_GetItemString(dict, "name");
name = PyString_AsString(obj);
init_unistr2(&form->name, name, strlen(name) + 1);