aboutsummaryrefslogtreecommitdiffstats
path: root/sway/main.c
diff options
context:
space:
mode:
authorLibravatar Dominique Martinet <asmadeus@codewreck.org>2018-06-30 16:44:36 +0900
committerLibravatar Dominique Martinet <asmadeus@codewreck.org>2018-07-02 08:03:41 +0900
commit1b7f554474552bd6c463b417305562d6d7dfd3d3 (patch)
tree9e4a8f642f4fe100a408d1b53ff61e56c649f5d3 /sway/main.c
parentMerge pull request #2190 from emersion/screencopy (diff)
downloadsway-1b7f554474552bd6c463b417305562d6d7dfd3d3.tar.gz
sway-1b7f554474552bd6c463b417305562d6d7dfd3d3.tar.zst
sway-1b7f554474552bd6c463b417305562d6d7dfd3d3.zip
log_kernel: s/fclose/pclose/ (for popen'd FILE)
With recent glibc the functions are strictly identical, but this might not be true for all libc implementations Found through static analysis.
Diffstat (limited to 'sway/main.c')
-rw-r--r--sway/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/main.c b/sway/main.c
index a325dc3a..124f9fbb 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -175,7 +175,7 @@ static void log_kernel() {
175 } 175 }
176 free(line); 176 free(line);
177 } 177 }
178 fclose(f); 178 pclose(f);
179} 179}
180 180
181static void security_sanity_check() { 181static void security_sanity_check() {