git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
555aa06
)
ctdb-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@samba.org>
Sun, 23 Mar 2014 03:20:14 +0000
(
04:20
+0100)
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>
ctdb/tools/ctdb.c
patch
|
blob
|
history
diff --git
a/ctdb/tools/ctdb.c
b/ctdb/tools/ctdb.c
index 05bfd0c7994654c94911dbc120ccf6ad14bd2850..58ac5e64d388ff6d3cc6654cc486d571d5d2cbc2 100644
(file)
--- a/
ctdb/tools/ctdb.c
+++ b/
ctdb/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;