Browse Source

added parentheses to sub-groups of logic

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@66682 15284696-431f-4ddb-bdfa-cd5b030d7da7
Yann Chemin 9 years ago
parent
commit
39e8aea2a0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      imagery/i.modis.qc/main.c

+ 2 - 2
imagery/i.modis.qc/main.c

@@ -334,8 +334,8 @@ int main(int argc, char *argv[])
     result = output->answer;
 
     /*mod09Q1*/
-    if (!strcmp(qcflag, "cloud") && strcmp(product, "mod09Q1") || 
-	!strcmp(qcflag, "diff_orbit_from_500m") && strcmp(product, "mod09Q1"))
+    if ((!strcmp(qcflag, "cloud") && strcmp(product, "mod09Q1")) || 
+	(!strcmp(qcflag, "diff_orbit_from_500m") && strcmp(product, "mod09Q1")))
 	G_fatal_error(_("This bit flag is only available for MOD09Q1 @ 250m products"));
 
     if (!strcmp(qcflag, "data_quality")) {