diff options
author | wm4 <wm4@nowhere> | 2013-05-06 20:58:54 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-06 23:11:11 +0200 |
commit | 885c6a2610619ad3ee2b01ae7ec7670f8551d388 (patch) | |
tree | 7a9d2d4f9516c417e15e16613bb71a87f1feca3f /video/out/vo_opengl_old.c | |
parent | ab776adeceb4b9b6ce7adde5a857ffc1e4b2c4ae (diff) | |
download | mpv-885c6a2610619ad3ee2b01ae7ec7670f8551d388.tar.bz2 mpv-885c6a2610619ad3ee2b01ae7ec7670f8551d388.tar.xz |
Fix some cppcheck / scan-build warnings
These were found by the cppcheck and scan-build static analyzers. Most
of these aren't interesting (the 2 previous commits fix some interesting
cases found by these analyzers), and they don't nearly fix all warnings.
(Most of the unfixed warnings are spam, things MPlayer never cared
about, or false positives.)
Diffstat (limited to 'video/out/vo_opengl_old.c')
-rw-r--r-- | video/out/vo_opengl_old.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_opengl_old.c b/video/out/vo_opengl_old.c index 7556bccdff..cd92acfaa0 100644 --- a/video/out/vo_opengl_old.c +++ b/video/out/vo_opengl_old.c @@ -565,7 +565,7 @@ static void replace_var_char(char **text, const char *name, char replace) // Append template to *text. Possibly initialize *text if it's NULL. static void append_template(char **text, const char* template) { - if (!text) + if (!*text) *text = talloc_strdup(NULL, template); else *text = talloc_strdup_append(*text, template); |