tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[PATCH 2/3] Remove pointless check-before-free in textdomain.c
---
src/lib/libintl/textdomain.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/lib/libintl/textdomain.c b/src/lib/libintl/textdomain.c
index 91b4fab..fd85438 100644
--- a/src/lib/libintl/textdomain.c
+++ b/src/lib/libintl/textdomain.c
@@ -115,8 +115,7 @@ bind_textdomain_codeset(const char *domainname, const char *codeset)
return NULL;
if (codeset) {
- if (p->codeset)
- free(p->codeset);
+ free(p->codeset);
p->codeset = strdup(codeset);
}
--
2.1.0
Home |
Main Index |
Thread Index |
Old Index