projects
/
am-utils-6.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5418817
)
Remove useless check found by Coverity; xmalloc never returns NULL.
author
Christos Zoulas
<christos@zoulas.com>
Wed, 22 Mar 2006 04:12:51 +0000
(
04:12
+0000)
committer
Christos Zoulas
<christos@zoulas.com>
Wed, 22 Mar 2006 04:12:51 +0000
(
04:12
+0000)
amd/am_ops.c
patch
|
blob
|
history
diff --git
a/amd/am_ops.c
b/amd/am_ops.c
index ad2eaeb570e63dcd8c8c8b0eae948f73ad4e9ab4..6e8a7c00d9203779f7c481c9ea05168bc06537b2 100644
(file)
--- a/
amd/am_ops.c
+++ b/
amd/am_ops.c
@@
-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 {