diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2018-06-30 16:44:36 +0900 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2018-07-02 08:03:41 +0900 |
commit | 1b7f554474552bd6c463b417305562d6d7dfd3d3 (patch) | |
tree | 9e4a8f642f4fe100a408d1b53ff61e56c649f5d3 /sway/main.c | |
parent | Merge pull request #2190 from emersion/screencopy (diff) | |
download | sway-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.c | 2 |
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 | ||
181 | static void security_sanity_check() { | 181 | static void security_sanity_check() { |