CVS patchset: 2836
CVS date: 1999/02/25 02:50:49
}
if (u->proxyh == NULL && (proxy = rpmGetVar(RPMVAR_FTPPROXY)) != NULL) {
- char *nu = malloc(strlen(u->user) + strlen(u->host) + sizeof("@"));
- strcpy(nu, u->user);
+ char *uu = (u->user ? u->user : "anonymous");
+ char *nu = malloc(strlen(u->user) + strlen(uu) + sizeof("@"));
+ strcpy(nu, uu);
strcat(nu, "@");
strcat(nu, u->host);
u->proxyu = nu;