Ce site fonctionne mieux avec JavaScript.
Accueil
Explorateur
Aide
Connexion
rinri
/
slstatus
Suivre
1
Ajouter aux favoris
0
Bifurcation
0
Code
Tickets
0
Demandes d'ajout
0
Versions
0
Wiki
Activité
Parcourir la source
Check return value of pclose()
master
Laslo Hunhold
il y a 6 ans
committed by
Aaron Marcher
Parent
c12b9cc50b
révision
b640cc489b
1 fichiers modifiés
avec
4 ajouts
et
1 suppressions
Vue séparée
Option de Diff
Voir les Statistiques
Télécharger le Fichier Patch
Télécharger le Fichier des Différences
+4
-1
components/run_command.c
+ 4
- 1
components/run_command.c
Voir le fichier
@@ -16,7 +16,10 @@ run_command(const char *cmd)
return NULL;
}
p = fgets(buf, sizeof(buf) - 1, fp);
pclose(fp);
if (pclose(fp) < 0) {
warn("pclose '%s':", cmd);
return NULL;
}
if (!p) {
return NULL;
}
Écrire
Aperçu
Chargement…
Annuler
Enregistrer