From c45241fba200b78c25d311d114962498083de790 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Wed, 13 Sep 2023 15:59:42 +0200 Subject: [PATCH] Remove redundant code Also fixes leaking some memory. --- src/daisy-player.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/daisy-player.c b/src/daisy-player.c index 057e287..6d337a8 100644 --- a/src/daisy-player.c +++ b/src/daisy-player.c @@ -2463,8 +2463,6 @@ int main (int argc, char *argv[]) { daisy[misc.current].smil_file = strdup (""); daisy[misc.current].smil_anchor = strdup (""); - daisy[misc.current].smil_file = strdup (""); - daisy[misc.current].smil_anchor = strdup (""); } // for break; } // TRACK_COUNT_AUDIO @@ -2506,8 +2504,6 @@ int main (int argc, char *argv[]) { daisy[misc.current].smil_file = strdup (""); daisy[misc.current].smil_anchor = strdup (""); - daisy[misc.current].smil_file = strdup (""); - daisy[misc.current].smil_anchor = strdup (""); } // for snprintf (DISCINFO_HTML, MAX_STR - 1, "%s/discinfo.html", misc.daisy_mp);