[vlc-commits] [Git][videolan/vlc][master] tracer: json: remove write-only temporary variable
Steve Lhomme (@robUx4)
gitlab at videolan.org
Wed Apr 5 09:25:53 UTC 2023
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
fef5c66e by Alexandre Janniaux at 2023-04-05T09:12:06+00:00
tracer: json: remove write-only temporary variable
- - - - -
1 changed file:
- modules/logger/json.c
Changes:
=====================================
modules/logger/json.c
=====================================
@@ -220,8 +220,6 @@ static const struct vlc_tracer_operations *Open(vlc_object_t *obj,
if (unlikely(sys == NULL))
return NULL;
- const struct vlc_tracer_operations *ops = &json_ops;
-
const char *filename = JSON_FILENAME;
char *path = var_InheritString(obj, "json-tracer-file");
@@ -256,7 +254,7 @@ static const struct vlc_tracer_operations *Open(vlc_object_t *obj,
setvbuf(sys->stream, NULL, _IOLBF, 0);
*sysp = sys;
- return ops;
+ return &json_ops;
}
#define LOGFILE_NAME_TEXT N_("Log filename")
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/fef5c66edb73dc71a97aeae59daffd1e4585c5b4
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/fef5c66edb73dc71a97aeae59daffd1e4585c5b4
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list