Mercurial > audlegacy
changeset 373:7e81e9ef40f2 trunk
[svn] Add parenthesis around assignment used as truth value.
author | chainsaw |
---|---|
date | Sat, 31 Dec 2005 17:35:02 -0800 |
parents | 8faef4a1461f |
children | 2454f2ab6770 |
files | Plugins/Input/flac/plugin.c Plugins/Input/timidity/src/xmms-timidity.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Input/flac/plugin.c Sat Dec 31 17:31:38 2005 -0800 +++ b/Plugins/Input/flac/plugin.c Sat Dec 31 17:35:02 2005 -0800 @@ -291,7 +291,7 @@ { VFSFile *file; gchar magic[4]; - if (file = vfs_fopen(filename, "rb")) { + if ((file = vfs_fopen(filename, "rb"))) { vfs_fread(magic, 1, 4, file); if (!strncmp(magic, "fLaC", 4)) { vfs_fclose(file);
--- a/Plugins/Input/timidity/src/xmms-timidity.c Sat Dec 31 17:31:38 2005 -0800 +++ b/Plugins/Input/timidity/src/xmms-timidity.c Sat Dec 31 17:35:02 2005 -0800 @@ -233,7 +233,7 @@ int xmmstimid_is_our_file(char *filename) { VFSFile *file; gchar magic[4]; - if (file = vfs_fopen(filename, "rb")) { + if ((file = vfs_fopen(filename, "rb"))) { vfs_fread(magic, 1, 4, file); if (!strncmp(magic, "MThd", 4)) { vfs_fclose(file);