summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-05-07 19:48:04 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-05-07 19:48:04 -0700
commitf872b47cb606d448766c1fa750709fd06a8a6904 (patch)
tree26a06c40c5b5375f6203e99c126d40948303f21d
parent7ff5997a990e1c82c723ac08fc2d8a70c4839619 (diff)
Coding style cleanup to appease static analyzer
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--xcmsdb.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/xcmsdb.c b/xcmsdb.c
index be55ba6..255b449 100644
--- a/xcmsdb.c
+++ b/xcmsdb.c
@@ -166,14 +166,11 @@ main(int argc, char *argv[])
exit (1);
}
- if (load && query) {
- load = 0;
- }
- if (load && remove) {
+ if (query || remove) {
load = 0;
}
- if (!query && !remove) {
+ if (load) {
LoadSCCData(dpy, DefaultScreen(dpy), filename, targetFormat);
}