##// END OF EJS Templates
chg: reset errno prior to calling strtol()...
Yuya Nishihara -
r46456:81da6feb stable
parent child Browse files
Show More
@@ -276,6 +276,7 b' static void execcmdserver(const struct c'
276 debugmsg("closing files based on /proc contents");
276 debugmsg("closing files based on /proc contents");
277 struct dirent *de;
277 struct dirent *de;
278 while ((de = readdir(dp))) {
278 while ((de = readdir(dp))) {
279 errno = 0;
279 char *end;
280 char *end;
280 long fd_value = strtol(de->d_name, &end, 10);
281 long fd_value = strtol(de->d_name, &end, 10);
281 if (end == de->d_name) {
282 if (end == de->d_name) {
General Comments 0
You need to be logged in to leave comments. Login now