[vlc-commits] [Git][videolan/vlc][master] logger: file: fix (null) filename
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Oct 2 07:26:44 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
d773e91d by Alexandre Janniaux at 2026-10-02T07:12:58+00:00
logger: file: fix (null) filename
In the __APPLE__ case, when path is null, it was using the home folder
to write the logfile but since it was using `path` instead of
`filename`, the file would be called `(null)`.
- - - - -
1 changed file:
- modules/logger/file.c
Changes:
=====================================
modules/logger/file.c
=====================================
@@ -174,7 +174,7 @@ static const struct vlc_logger_operations *Open(vlc_object_t *obj,
char *home = config_GetUserDir(VLC_HOME_DIR);
if (home != NULL)
{
- if (asprintf(&path, "%s/Library/Logs/%s", home, path) == -1)
+ if (asprintf(&path, "%s/Library/Logs/%s", home, filename) == -1)
path = NULL;
free(home);
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d773e91d3b270a8ad1241a7426a09f322cf33110
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d773e91d3b270a8ad1241a7426a09f322cf33110
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list