1
0
mirror of https://gittea.dev/nova/th.git synced 2025-10-21 18:30:15 -04:00

resolved all compiler warnings so far

This commit is contained in:
nova
2025-09-30 22:05:26 +02:00
parent 7ee16c8f4a
commit c6763233bf
3 changed files with 11 additions and 6 deletions

View File

@@ -813,10 +813,12 @@ void paste(){
FILE *cmd_open;
while (1) {
cmd_open = popen(cmd, "r");
getline(&line, &size, cmd_open);
int val = getline(&line, &size, cmd_open);
if (pclose(cmd_open) == 0) {
break;
} else if (val == 0 || val == -1) {
break;
}
cmd = concat(cmd, "_");
}