diff options
Diffstat (limited to 'e-util/e-pilot-util.c')
-rw-r--r-- | e-util/e-pilot-util.c | 6 |
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); |