chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
044eac1
)
string-util: use fflush_and_check() where appropriate
author
Lennart Poettering
<lennart@poettering.net>
Fri, 20 Apr 2018 13:22:29 +0000
(15:22 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000
(16:47 +0200)
src/basic/string-util.c
patch
|
blob
|
history
diff --git
a/src/basic/string-util.c
b/src/basic/string-util.c
index d3d9d3044b2de4b9e82a1d2a9a7a2fece85c9471..498e31122588689fb0d400d52f3781d572366e92 100644
(file)
--- a/
src/basic/string-util.c
+++ b/
src/basic/string-util.c
@@
-21,6
+21,7
@@
//#include "terminal-util.h"
#include "utf8.h"
#include "util.h"
+//#include "fileio.h"
int strcmp_ptr(const char *a, const char *b) {
@@
-798,7
+799,7
@@
char *strip_tab_ansi(char **ibuf, size_t *_isz, size_t highlight[2]) {
}
}
- if (f
error(f)
) {
+ if (f
flush_and_check(f) < 0
) {
fclose(f);
return mfree(obuf);
}