changeset 9230:b83905afbb55

[gaim-migrate @ 10026] memory leaks are bad committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 07 Jun 2004 05:29:36 +0000
parents 395e62cf7bf6
children ac8790437abe
files src/util.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.c	Mon Jun 07 04:46:01 2004 +0000
+++ b/src/util.c	Mon Jun 07 05:29:36 2004 +0000
@@ -2384,7 +2384,6 @@
  * URI/URL Functions
  **************************************************************************/
 /*
- * XXX - Make this also support extracting a username and password?
  * Would be nice when dissecting an environmental variable
  * that specifies proxy information.
  */
@@ -2429,7 +2428,7 @@
 			*passwd = '\0';
 		}
 
-		url = strdup(at+1); /* move pointer after the @ char */
+		url = at+1; /* move pointer after the @ char */
 	} else {
 		*user = '\0';
 		*passwd = '\0';