[vlc-commits] audioscrobbler: use break rather than goto
Rémi Denis-Courmont
git at videolan.org
Sun Apr 12 11:25:11 CEST 2020
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Apr 12 11:54:05 2020 +0300| [0474c751825ddc2d0df9547794b0a1d4dba3e44b] | committer: Rémi Denis-Courmont
audioscrobbler: use break rather than goto
(where applicable)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0474c751825ddc2d0df9547794b0a1d4dba3e44b
---
modules/misc/audioscrobbler.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/misc/audioscrobbler.c b/modules/misc/audioscrobbler.c
index 7506488041..312c271fd0 100644
--- a/modules/misc/audioscrobbler.c
+++ b/modules/misc/audioscrobbler.c
@@ -812,7 +812,7 @@ static void *Run(void *data)
vlc_mutex_unlock(&p_sys->lock);
if (vlc_memstream_close(&payload))
- goto out;
+ break;
vlc_memstream_open(&req);
vlc_memstream_printf(&req, "POST %s HTTP/1.1\r\n", url->psz_path);
@@ -831,7 +831,7 @@ static void *Run(void *data)
free(payload.ptr);
if (vlc_memstream_close(&req)) /* Out of memory */
- goto out;
+ break;
vlc_tls_t *sock = vlc_tls_SocketOpenTCP(VLC_OBJECT(p_intf),
url->psz_host, url->i_port);
More information about the vlc-commits
mailing list