[vlc-commits] Revert "FromLocaleDup(): accept NULL input (and return NULL)"

Rafaël Carré git at videolan.org
Tue Aug 30 14:54:33 CEST 2011


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Tue Aug 30 08:54:11 2011 -0400| [4df49b18119a41d2673866679d233334d597a4e9] | committer: Rafaël Carré

Revert "FromLocaleDup(): accept NULL input (and return NULL)"

This reverts commit 3ab2f937b7f2dbd77e4cd161ef926ecb07dc147b.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4df49b18119a41d2673866679d233334d597a4e9
---

 src/text/unicode.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/text/unicode.c b/src/text/unicode.c
index 342037b..50ffdb2 100644
--- a/src/text/unicode.c
+++ b/src/text/unicode.c
@@ -90,9 +90,6 @@ char *FromLocale (const char *locale)
  */
 char *FromLocaleDup (const char *locale)
 {
-    if (!locale)
-        return NULL;
-
 #ifdef ASSUME_UTF8
     return strdup (locale);
 #else



More information about the vlc-commits mailing list