diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-07-09 15:17:15 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-07-09 15:17:15 +0800 |
commit | bc9f58d42aab81a76e020a21c4760ca098df0aa8 (patch) | |
tree | b2146f2f3dddf6913f997693f716723ce479d6b2 | |
parent | e35ba583fa539cc4ececde8c190cabe42f292472 (diff) | |
download | gsoc2013-evolution-bc9f58d42aab81a76e020a21c4760ca098df0aa8.tar gsoc2013-evolution-bc9f58d42aab81a76e020a21c4760ca098df0aa8.tar.gz gsoc2013-evolution-bc9f58d42aab81a76e020a21c4760ca098df0aa8.tar.bz2 gsoc2013-evolution-bc9f58d42aab81a76e020a21c4760ca098df0aa8.tar.lz gsoc2013-evolution-bc9f58d42aab81a76e020a21c4760ca098df0aa8.tar.xz gsoc2013-evolution-bc9f58d42aab81a76e020a21c4760ca098df0aa8.tar.zst gsoc2013-evolution-bc9f58d42aab81a76e020a21c4760ca098df0aa8.zip |
Return "" instead of NULL.
2000-07-09 Christopher James Lahey <clahey@helixcode.com>
* widgets/e-text/e-text-model.c (e_text_model_real_get_text):
Return "" instead of NULL.
svn path=/trunk/; revision=4003
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | widgets/e-text/e-text-model.c | 5 | ||||
-rw-r--r-- | widgets/text/e-text-model.c | 5 |
3 files changed, 13 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2000-07-09 Christopher James Lahey <clahey@helixcode.com> + + * widgets/e-text/e-text-model.c (e_text_model_real_get_text): + Return "" instead of NULL. + 2000-07-07 Christopher James Lahey <clahey@helixcode.com> * art/Makefile.am: Fixed EXTRA_DIST for make distcheck. diff --git a/widgets/e-text/e-text-model.c b/widgets/e-text/e-text-model.c index d571e87791..6ca650867c 100644 --- a/widgets/e-text/e-text-model.c +++ b/widgets/e-text/e-text-model.c @@ -131,7 +131,10 @@ e_text_model_destroy (GtkObject *object) static gchar * e_text_model_real_get_text(ETextModel *model) { - return model->text; + if (model->text) + return model->text; + else + return ""; } static void diff --git a/widgets/text/e-text-model.c b/widgets/text/e-text-model.c index d571e87791..6ca650867c 100644 --- a/widgets/text/e-text-model.c +++ b/widgets/text/e-text-model.c @@ -131,7 +131,10 @@ e_text_model_destroy (GtkObject *object) static gchar * e_text_model_real_get_text(ETextModel *model) { - return model->text; + if (model->text) + return model->text; + else + return ""; } static void |