Remove useless check found by Coverity; xmalloc never returns NULL.
authorChristos Zoulas <christos@zoulas.com>
Wed, 22 Mar 2006 04:12:51 +0000 (04:12 +0000)
committerChristos Zoulas <christos@zoulas.com>
Wed, 22 Mar 2006 04:12:51 +0000 (04:12 +0000)
amd/am_ops.c

index ad2eaeb570e63dcd8c8c8b0eae948f73ad4e9ab4..6e8a7c00d9203779f7c481c9ea05168bc06537b2 100644 (file)
@@ -346,7 +346,7 @@ merge_opts(const char *opts1, const char *opts2)
   }
 
   /* finally, append opts2 itself */
-  if (newstr && newstr[0]) {
+  if (newstr[0]) {
     xstrlcat(newstr, ",", len);
     xstrlcat(newstr, opts2, len);
   } else {