aboutsummaryrefslogtreecommitdiff
path: root/c/episodelistview.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-04-01 19:48:29 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-04-01 19:48:29 +0200
commitbc9ee9be4d6c164687f1797215f1ea3177ef5bb2 (patch)
treede97d2b0f2a04d6b6649eb8b4d6c0a305e459da1 /c/episodelistview.c
parent226b05d4bdcff492070e715bf0cbd719eb98ac06 (diff)
downloadEpisodeBrowser-bc9ee9be4d6c164687f1797215f1ea3177ef5bb2.tar.gz
Adjust formatting.
Diffstat (limited to 'c/episodelistview.c')
-rw-r--r--c/episodelistview.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/c/episodelistview.c b/c/episodelistview.c
index 074b459..b292725 100644
--- a/c/episodelistview.c
+++ b/c/episodelistview.c
@@ -169,14 +169,13 @@ ElvUpdate()
t2 = T(3);
PI(t2,i+1) return;
tszName = NULL;
- P("episode_data","lookup_episode_local",3,t2) goto skipname;
- GAC(t2+1,&szName) goto skipname;
+ P("episode_data","lookup_episode_local",3,t2) goto ep;
+ GAC(t2+1,&szName) goto ep;
tszName = TszFromSz(szName, CP_UTF8);
if (!tszName) return;
- /* Format episode string. */
-skipname:
- cb = 100;
+ /* Format episode number string. */
+ ep: cb = 100;
tszEpisode = malloc(cb*sizeof(TCHAR));
if (!tszEpisode) goto e;
_stprintf_s(tszEpisode, cb, TEXT("%d"), i+1);
@@ -197,7 +196,7 @@ skipname:
}
free(tszEpisode);
-e: if (tszName) free(tszName);
+ e: if (tszName) free(tszName);
}
/* Reset selection and scrolling position. */