diff options
author | wm4 <wm4@nowhere> | 2013-07-23 00:45:23 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-23 00:45:23 +0200 |
commit | e83cbde1a4b816a64cefde1fb8bdbac403079600 (patch) | |
tree | 1ac71b13723174ab48465915fd5e9916faa7df35 /core/screenshot.c | |
parent | 78ebb3c6fa637206bb369349ba93328b36895e2b (diff) | |
download | mpv-e83cbde1a4b816a64cefde1fb8bdbac403079600.tar.bz2 mpv-e83cbde1a4b816a64cefde1fb8bdbac403079600.tar.xz |
Fix some -Wshadow warnings
In general, this warning can hint to actual bugs. We don't enable it
yet, because it would conflict with some unmerged code, and we should
check with clang too (this commit was done by testing with gcc).
Diffstat (limited to 'core/screenshot.c')
-rw-r--r-- | core/screenshot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/screenshot.c b/core/screenshot.c index 6b07bce5a0..ee568d4b3d 100644 --- a/core/screenshot.c +++ b/core/screenshot.c @@ -187,11 +187,11 @@ static char *create_fname(struct MPContext *mpctx, char *template, break; } case 't': { - char fmt = *template; - if (!fmt) + char tfmt = *template; + if (!tfmt) goto error_exit; template++; - char fmtstr[] = {'%', fmt, '\0'}; + char fmtstr[] = {'%', tfmt, '\0'}; char buffer[80]; if (strftime(buffer, sizeof(buffer), fmtstr, local_time) == 0) buffer[0] = '\0'; |