projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fad72f
)
format-table: make all widths be set properly
author
NOGISAKA Sadata
<ngsksdt@gmail.com>
Mon, 9 Jul 2018 14:49:07 +0000
(23:49 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Thu, 12 Jul 2018 04:51:58 +0000
(13:51 +0900)
Fixes #9549.
src/basic/format-table.c
patch
|
blob
|
history
diff --git
a/src/basic/format-table.c
b/src/basic/format-table.c
index 94e796d1caac456f3de92fb4095ea2cd17f1de74..ced3593bc48c73d4673acc5e28860c879d4c9c39 100644
(file)
--- a/
src/basic/format-table.c
+++ b/
src/basic/format-table.c
@@
-1134,14
+1134,12
@@
int table_print(Table *t, FILE *f) {
assert(weight_sum >= column_weight[j]);
weight_sum -= column_weight[j];
- if (restart)
+ if (restart
&& !finalize
)
break;
}
- if (finalize) {
- assert(!restart);
+ if (finalize)
break;
- }
if (!restart)
finalize = true;