[vlc-commits] messages: save one byte

Rémi Denis-Courmont git at videolan.org
Mon Jun 23 17:26:21 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jun 23 18:26:04 2014 +0300| [39827e4a5e846bf58a247b22e29cf7b8bbe9c6bc] | committer: Rémi Denis-Courmont

messages: save one byte

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

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

diff --git a/src/misc/messages.c b/src/misc/messages.c
index 8452a5a..14f73f0 100644
--- a/src/misc/messages.c
+++ b/src/misc/messages.c
@@ -80,7 +80,7 @@ void vlc_vaLog (vlc_object_t *obj, int type, const char *module,
         module = p;
     p = strchr(module, '.');
 
-    size_t modlen = (p != NULL) ? (p - module) : 1;
+    size_t modlen = (p != NULL) ? (p - module) : 0;
     char modulebuf[modlen + 1];
     if (p != NULL)
     {



More information about the vlc-commits mailing list