ports/devel/clint/files/patch-src-utility.cc
Martin Wilke 9e988e2e8e - Fix build with gcc 4.2
PR:		117789
Submitted by:	Pietro Cerutti <gahr@gahr.ch>
Approved by:	portmgr (pav)
2007-11-05 10:04:20 +00:00

18 lines
533 B
C++

--- src/utility.cc.orig Mon Apr 16 13:19:36 2001
+++ src/utility.cc Thu Nov 30 22:31:32 2006
@@ -40,6 +40,7 @@
filelist.push_back(filename);
}
}
+ closedir(curdir);
} else {
// There is something wrong with the directory. Probably
// doesn't exist
@@ -47,7 +48,6 @@
// directory
// throw std::invalid_argument("get_plugin_list: something is wrong with the directory " + directory);
}
- closedir(curdir);
return;
}