aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-sexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-sexp.c')
-rw-r--r--e-util/e-sexp.c5
1 files changed, 4 insertions, 1 deletions
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=='\'')