summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-08-08 07:58:21 +0300
committerUoti Urpala <uau@mplayer2.org>2011-08-08 07:58:21 +0300
commitb4c90d78f00108647ce53d4b3d1a89b550fac4d5 (patch)
tree01062e743010da4f1f2ee8e88c7caf32c6d511a2 /mplayer.c
parentc6141b03f49d91509592dc7e11e3f6fbcddd0e39 (diff)
downloadmpv-b4c90d78f00108647ce53d4b3d1a89b550fac4d5.tar.bz2
mpv-b4c90d78f00108647ce53d4b3d1a89b550fac4d5.tar.xz
options: support --leak-report (double dash form)
The special option --leak-report is manually checked so didn't automatically get double-dash support. Update the test.
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index dcbd4b598d..3b8f588c0e 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -3951,7 +3951,8 @@ int main(int argc, char *argv[])
pthread_win32_thread_attach_np();
atexit(detach_ptw32);
#endif
- if (argc > 1 && !strcmp(argv[1], "-leak-report"))
+ if (argc > 1 && (!strcmp(argv[1], "-leak-report")
+ || !strcmp(argv[1], "--leak-report")))
talloc_enable_leak_report();
char *mem_ptr;