aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-03-02 01:10:35 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-03-02 01:10:35 +0800
commitdbcf42527784f66f0bc7912d40e3f68a81ac42a3 (patch)
tree67be60afa876a2b6d4660b9024d783eb47631603
parent7c138433345c8b6b2f82dac8bf28717181b38981 (diff)
downloadgsoc2013-evolution-dbcf42527784f66f0bc7912d40e3f68a81ac42a3.tar.gz
gsoc2013-evolution-dbcf42527784f66f0bc7912d40e3f68a81ac42a3.tar.zst
gsoc2013-evolution-dbcf42527784f66f0bc7912d40e3f68a81ac42a3.zip
Make it handle a NULL string as an empty string.
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. svn path=/trunk/; revision=8448
-rw-r--r--e-util/ChangeLog5
-rw-r--r--e-util/e-sexp.c5
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=='\'')
bluefish?id=ba924988158be48f52fe628d4fbe1d11f24c3ba4'>Add an explicit dependency on pkgconfbapt2013-09-031-1/+1 * - convert to USES=gettextjgh2013-05-061-9/+10 * - Update to 2.2.3sylvio2013-01-114-19/+36 * Update PCRE to 8.32mm2012-12-111-2/+2 * - update png to 1.5.10dinoex2012-06-011-0/+1 * - Update to 2.2.2sylvio2012-05-083-4/+78 * Bump pcre library dependency due to 8.30 updatemm2012-02-141-1/+2 * - update to 2.2.0rm2011-12-213-300/+270 * - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)amdmi32011-09-241-2/+2 * - Update to 2.0.3sylvio2011-05-243-4/+19 * - Change options of build in file Makefile.sylvio2011-02-113-35/+30 * - Update to 2.0.2sylvio2011-02-104-22/+31 * Bounce PORTREVISION for gettext-related ports. Have fun, ya'll.ade2010-05-311-1/+1 * - update to 1.4.1dinoex2010-03-281-0/+1 * - Update to 2.0.0sylvio2010-03-024-36/+360 * - update to jpeg-8dinoex2010-02-051-1/+1 * - Update my mail address to FreeBSDsylvio2009-11-281-1/+1 * - Removed MASTER_SITE_SUBDIR.araujo2009-08-191-1/+0 * - Use SF macro.araujo2009-08-191-3/+10 * - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-311-1/+1 * - Reset farrokhi@freebsd.org due to long period of inactivity.miwi2009-03-101-1/+1