debian-installer/retriever/choose-mirror choose-mirror.c,1.17,1.18
Update of /cvs/debian-boot/debian-installer/retriever/choose-mirror
In directory gluck:/tmp/cvs-serv30817/retriever/choose-mirror
Modified Files:
choose-mirror.c
Log Message:
Useless use of strlen award :-)
Index: choose-mirror.c
===================================================================
RCS file: /cvs/debian-boot/debian-installer/retriever/choose-mirror/choose-mirror.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- choose-mirror.c 8 Dec 2003 21:50:27 -0000 1.17
+++ choose-mirror.c 9 Dec 2003 19:42:08 -0000 1.18
@@ -140,9 +140,7 @@
country = debconf->value;
// Ensure 'country' set to something
- if (country && strlen(country) == 0)
- country = NULL;
- if (country == NULL)
+ if (country == NULL || *country == 0)
country = "US";
#ifdef WITH_HTTP
Reply to: