diff options
author | JP Rosevear <jpr@helixcode.com> | 2000-12-21 05:48:10 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2000-12-21 05:48:10 +0800 |
commit | 64e2a500f8e989da0b56ac7f7b6e2f4b844b9ec2 (patch) | |
tree | 223b47169544bd42a0b1a6a8490862f9f58bab8d /e-util | |
parent | ae5692831b81c6e4e7e45ebce11a2fe64f0be6f4 (diff) | |
download | gsoc2013-evolution-64e2a500f8e989da0b56ac7f7b6e2f4b844b9ec2.tar gsoc2013-evolution-64e2a500f8e989da0b56ac7f7b6e2f4b844b9ec2.tar.gz gsoc2013-evolution-64e2a500f8e989da0b56ac7f7b6e2f4b844b9ec2.tar.bz2 gsoc2013-evolution-64e2a500f8e989da0b56ac7f7b6e2f4b844b9ec2.tar.lz gsoc2013-evolution-64e2a500f8e989da0b56ac7f7b6e2f4b844b9ec2.tar.xz gsoc2013-evolution-64e2a500f8e989da0b56ac7f7b6e2f4b844b9ec2.tar.zst gsoc2013-evolution-64e2a500f8e989da0b56ac7f7b6e2f4b844b9ec2.zip |
Check for null strings (e_pilot_utf8_from_pchar): ditto
2000-12-20 JP Rosevear <jpr@helixcode.com>
* e-pilot-util.c (e_pilot_utf8_to_pchar): Check for null strings
(e_pilot_utf8_from_pchar): ditto
svn path=/trunk/; revision=7106
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/ChangeLog | 5 | ||||
-rw-r--r-- | e-util/e-pilot-util.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog index acfa209e41..dbb96628d6 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,8 @@ +2000-12-20 JP Rosevear <jpr@helixcode.com> + + * e-pilot-util.c (e_pilot_utf8_to_pchar): Check for null strings + (e_pilot_utf8_from_pchar): ditto + 2000-12-19 JP Rosevear <jpr@helixcode.com> * e-pilot-util.c (e_pilot_utf8_to_pchar): Convert utf8 strings to diff --git a/e-util/e-pilot-util.c b/e-util/e-pilot-util.c index 93bf9aa1b2..58c6937b8c 100644 --- a/e-util/e-pilot-util.c +++ b/e-util/e-pilot-util.c @@ -32,6 +32,9 @@ e_pilot_utf8_to_pchar (const char *string) { char *pstring = NULL; int res; + + if (!string) + return NULL; res = convert_ToPilotChar ("UTF8", string, strlen (string), &pstring); @@ -46,6 +49,9 @@ e_pilot_utf8_from_pchar (const char *string) { char *ustring = NULL; int res; + + if (!string) + return NULL; res = convert_FromPilotChar ("UTF8", string, strlen (string), &ustring); |