git.samba.org
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
568fde7
)
tools-ctdb: Remove redundant filtering of trailing empty lines
author
Martin Schwenke
<martin@meltin.net>
Mon, 3 Mar 2014 05:23:42 +0000
(16:23 +1100)
committer
Amitay Isaacs
<amitay@gmail.com>
Wed, 26 Mar 2014 02:58:29 +0000
(13:58 +1100)
There is a check for empty lines in the loop just below.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(Imported from commit
fad2b6b074495eb1dc036cce293456857985f8f5
)
tools/ctdb.c
patch
|
blob
|
history
diff --git
a/tools/ctdb.c
b/tools/ctdb.c
index cd7e922b3fe95239bc56c1da9b682654f8d9f95c..de6119738a17aed01d290c2d0a5822c1e6e6a450 100644
(file)
--- a/
tools/ctdb.c
+++ b/
tools/ctdb.c
@@
-830,9
+830,6
@@
static struct pnn_node *read_pnn_node_file(TALLOC_CTX *mem_ctx,
if (lines == NULL) {
return NULL;
}
- while (nlines > 0 && strcmp(lines[nlines-1], "") == 0) {
- nlines--;
- }
for (i=0, pnn=0; i<nlines; i++) {
char *node;