diff options
-rw-r--r-- | e-util/ChangeLog | 5 | ||||
-rw-r--r-- | e-util/e-sexp.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 67fc246621..35cd88d2c1 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,8 @@ +2001-03-01 Not Zed <NotZed@Ximian.com> + + * e-sexp.c (e_sexp_encode_string): Make it handle a NULL string as + an empty string. + 2001-02-23 Not Zed <NotZed@Ximian.com> * e-msgport.c (e_thread_destroy): Wait a lot lot longer for diff --git a/e-util/e-sexp.c b/e-util/e-sexp.c index 997eb441d8..69e1c0ca15 100644 --- a/e-util/e-sexp.c +++ b/e-util/e-sexp.c @@ -1156,7 +1156,10 @@ e_sexp_encode_string(GString *s, const char *string) char c; const char *p; - p = string; + if (string == NULL) + p = ""; + else + p = string; g_string_append(s, " \""); while ( (c = *p++) ) { if (c=='\\' || c=='\"' || c=='\'') |