Mercurial > pidgin.yaz
changeset 17650:a90e2e720762
Now fix warnings from null_to_empty()'s constness.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sat, 02 Jun 2007 06:19:50 +0000 |
parents | f187d935486b |
children | 79ecaab86f91 |
files | libpurple/dbus-analyze-functions.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/dbus-analyze-functions.py Sat Jun 02 06:00:35 2007 +0000 +++ b/libpurple/dbus-analyze-functions.py Sat Jun 02 06:19:50 2007 +0000 @@ -365,7 +365,8 @@ self.cdecls.append("\tconst char *%s;" % name) else: self.cdecls.append("\tchar *%s;" % name) - self.ccode.append("\t%s = null_to_empty(%s);" % (name, self.call)) + self.ccode.append("\tif ((%s = %s) == NULL)" % (name, self.call)) + self.ccode.append("\t\t%s = \"\";" % (name)) self.cparamsout.append(("STRING", name)) self.addouttype("s", name) if not const: