Mercurial > gftp.yaz
diff src/text/gftp-text.c @ 67:aa971a4bb16f
2002-11-27 Brian Masney <masneyb@gftp.org>
* Officially release 2.0.14rc1
* lib/cache.c - take out a warning message
* lib/misc.c lib/protocols.c lib/gftp.h lib/gtk/dnd.c lib/transfer.c -
add second argument (free_request) to gftp_request_destroy
* lib/protocols.c (gftp_parse_url) - make sure the request structure
is cleared before we start to modify it
* src/gtk/gftp-text.c - fixed crash if you didn't enter a username
author | masneyb |
---|---|
date | Wed, 27 Nov 2002 14:29:57 +0000 |
parents | c01d91c10f6c |
children | 76e2b58a9440 |
line wrap: on
line diff
--- a/src/text/gftp-text.c Wed Nov 27 02:23:51 2002 +0000 +++ b/src/text/gftp-text.c Wed Nov 27 14:29:57 2002 +0000 @@ -323,7 +323,7 @@ return (1); } - if (strcmp (GFTP_GET_USERNAME (request), "anonymous") == 0) + if (GFTP_GET_USERNAME (request) == NULL) { if ((pos = gftp_text_ask_question ("Username [anonymous]", 1, tempstr, sizeof (tempstr))) != NULL) @@ -335,6 +335,8 @@ request->password = NULL; } } + else + gftp_set_username (request, "anonymous"); } if (strcmp (GFTP_GET_USERNAME (request), "anonymous") != 0 &&