aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-03-18 22:11:36 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-03-22 22:20:26 -0400
commit8ef322421ae938103881c5f90d81265ca0bc39c2 (patch)
treeca5594dadf7debb1a58ff6b458747037f97e33aa /src
parente082badcb7dfa6e14a7d06fbb1e6a6976e3c1692 (diff)
downloadstasis-8ef322421ae938103881c5f90d81265ca0bc39c2.tar.gz
Remove commented code
Diffstat (limited to 'src')
-rw-r--r--src/system.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/system.c b/src/system.c
index bfce59e..1701523 100644
--- a/src/system.c
+++ b/src/system.c
@@ -154,7 +154,6 @@ char *shell_output(const char *command, int *status) {
result = calloc(initial_size, sizeof(result));
memset(line, 0, sizeof(line));
while (fread(line, sizeof(char), sizeof(line) - 1, pp) != 0) {
- //while (fgets(line, sizeof(line) - 1, pp) != NULL) {
size_t result_len = strlen(result);
size_t need_realloc = (result_len + strlen(line)) > current_size;
if (need_realloc) {