[vlc-commits] udev: fix warning

Rafaël Carré git at videolan.org
Fri Feb 10 00:50:46 CET 2012


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Thu Feb  9 18:50:37 2012 -0500| [8ea322d758184a627c51199738f7333226720ad1] | committer: Rafaël Carré

udev: fix warning

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

 modules/services_discovery/udev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/services_discovery/udev.c b/modules/services_discovery/udev.c
index dab204f..7dd910f 100644
--- a/modules/services_discovery/udev.c
+++ b/modules/services_discovery/udev.c
@@ -592,7 +592,7 @@ static char *disc_get_name (struct udev_device *dev)
     if (cat == NULL)
         cat = N_("Unknown type");
 
-    const char *label = decode_property (dev, "ID_FS_LABEL_ENC");
+    char *label = decode_property (dev, "ID_FS_LABEL_ENC");
 
     if (label)
         if (asprintf(&name, "%s (%s)", label, vlc_gettext(cat)) < 0)



More information about the vlc-commits mailing list