aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Toshok <toshok@helixcode.com>2000-10-17 07:22:26 +0800
committerChris Toshok <toshok@src.gnome.org>2000-10-17 07:22:26 +0800
commitabd69f08adc08989436209f97a633707947e70c7 (patch)
tree0561f1e1b11d1405ac0f111521997cd0b4b7ded0
parent5da3981c901271b379b80705dbd598b3965baf2d (diff)
downloadgsoc2013-evolution-abd69f08adc08989436209f97a633707947e70c7.tar.gz
gsoc2013-evolution-abd69f08adc08989436209f97a633707947e70c7.tar.zst
gsoc2013-evolution-abd69f08adc08989436209f97a633707947e70c7.zip
only set the url->user field if the user string is non-NULL and not empty.
2000-10-16 Chris Toshok <toshok@helixcode.com> * mail-config-gui.c (service_page_get_url): only set the url->user field if the user string is non-NULL and not empty. svn path=/trunk/; revision=5953
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-config-gui.c12
2 files changed, 15 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index b620f89f33..98dfd18129 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2000-10-16 Chris Toshok <toshok@helixcode.com>
+
+ * mail-config-gui.c (service_page_get_url): only set the url->user
+ field if the user string is non-NULL and not empty.
+
2000-10-16 Not Zed <NotZed@HelixCode.com>
* message-list.c (message_list_setup_etable): Uh, fixed jeff's
diff --git a/mail/mail-config-gui.c b/mail/mail-config-gui.c
index 67ad633771..34560647ac 100644
--- a/mail/mail-config-gui.c
+++ b/mail/mail-config-gui.c
@@ -583,8 +583,16 @@ service_page_get_url (MailDialogServicePage *page)
url = g_new0 (CamelURL, 1);
url->protocol = g_strdup (spitem->protocol);
- if (spitem->user)
- url->user = e_utf8_gtk_editable_get_chars (GTK_EDITABLE (spitem->user), 0, -1);
+ if (spitem->user) {
+ char *user = e_utf8_gtk_editable_get_chars (GTK_EDITABLE (spitem->user), 0, -1);
+ if (user && *user) {
+ url->user = user;
+ }
+ else {
+ url->user = NULL;
+ g_free (user);
+ }
+ }
if (spitem->host) {
char *p;
tr>* Sync to new bsd.autotools.mkade2010-12-041-1/+1 * Bounce PORTREVISION for gettext-related ports. Have fun, ya'll.ade2010-05-311-1/+1 * - update to 1.4.1dinoex2010-03-281-1/+1 * - update to jpeg-8dinoex2010-02-051-1/+1 * -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-031-1/+1 * - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-311-1/+1 * - add LICENSE:dinoex2009-01-171-3/+3 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-1/+1 * - clean X11BASEdinoex2008-03-301-2/+2 * - cleanup after xfree86 removaldinoex2008-03-171-3/+2 * Remove support for XFree8-4.flz2008-03-081-4/+0 * - Welcome X.org 7.2 \o/.flz2007-05-201-0/+1 * - fix build on CURRENT (objformat)dinoex2007-02-172-0/+2 * - switch depedency from imake-6 to dgsdinoex2006-12-121-1/+1 * - take maintainershipdinoex2006-12-101-4/+1 * Deprecate port. Will be removed on 25th of December 2006.flz2006-11-081-0/+3 * If XFree86-4 is used, it provides libdpstk: don't depend on x11/dgs.thierry2006-08-201-2/+1 * - s,INSTALLS_SHLIB,USE_LDCONFIG,gclsung2006-08-151-1/+1 * Chase the update of x11/dgs and depends on pswrap from Imake.thierry2006-08-041-1/+7 * - Upgrade to 0.3.4 and unbreak;thierry2006-07-264-12/+24 * Remove USE_REINPLACE for categories starting with a Gedwin2006-05-081-1/+0 * BROKEN: Unfetchablekris2006-04-231-0/+2 * Bump PORTREVISION on glib12/gtk12 consumer ports to ease the upgrade path.ade2006-03-071-1/+1 * Conversion to a single libtool environment.ade2006-02-231-1/+1 * - Add SHA256pav2005-11-261-0/+1 * Mass-conversion to the USE_AUTOTOOLS New World Order. The code presentade2005-11-151-1/+1 * change the libtool version to use from 1.3 to 1.5oliver2005-06-021-1/+6 * Tidy up whitespace.trevor2004-04-111-1/+1 * Whoa there, boy, that's a mighty big commit y'all have there...ade2004-03-141-1/+1 * BROKEN on alpha: Does not compilekris2004-02-261-1/+7 * Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-041-0/+1 * SIZEify.trevor2004-01-29