[vlc-commits] darwin/dirs: Remove accidentally added strdup

Marvin Scholz git at videolan.org
Wed Oct 4 08:33:05 CEST 2017


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Wed Oct  4 08:25:34 2017 +0200| [649e477b6eca5bb4d4f2abfad3bf613fa0d55edd] | committer: Marvin Scholz

darwin/dirs: Remove accidentally added strdup

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

 src/darwin/dirs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/darwin/dirs.c b/src/darwin/dirs.c
index f79990d541..c80a59d5b5 100644
--- a/src/darwin/dirs.c
+++ b/src/darwin/dirs.c
@@ -138,7 +138,7 @@ static char *getAppDependentDir(vlc_userdir_t type)
     }
 
     // Default fallback
-    const char *fallback = strdup("org.videolan.vlc");
+    const char *fallback = "org.videolan.vlc";
     char *name = NULL;
 
     CFBundleRef mainBundle = CFBundleGetMainBundle();



More information about the vlc-commits mailing list