Commit 39827e4a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

messages: save one byte

parent 4cdf312e
...@@ -80,7 +80,7 @@ void vlc_vaLog (vlc_object_t *obj, int type, const char *module, ...@@ -80,7 +80,7 @@ void vlc_vaLog (vlc_object_t *obj, int type, const char *module,
module = p; module = p;
p = strchr(module, '.'); p = strchr(module, '.');
size_t modlen = (p != NULL) ? (p - module) : 1; size_t modlen = (p != NULL) ? (p - module) : 0;
char modulebuf[modlen + 1]; char modulebuf[modlen + 1];
if (p != NULL) if (p != NULL)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment