aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-pilot-util.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-12-21 05:48:10 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-12-21 05:48:10 +0800
commit64e2a500f8e989da0b56ac7f7b6e2f4b844b9ec2 (patch)
tree223b47169544bd42a0b1a6a8490862f9f58bab8d /e-util/e-pilot-util.c
parentae5692831b81c6e4e7e45ebce11a2fe64f0be6f4 (diff)
downloadgsoc2013-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/e-pilot-util.c')
-rw-r--r--e-util/e-pilot-util.c6
1 files changed, 6 insertions, 0 deletions
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);