Prefer NULL over 0 and not need to initialize globals with zero as pointed
out by Axel. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26610 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -23,7 +23,7 @@ using std::map;
|
||||
static const int kVirtualDescriptorStart = 10000;
|
||||
|
||||
typedef map<int, BPrivate::Descriptor*> DescriptorMap;
|
||||
static DescriptorMap *sDescriptors = 0;
|
||||
static DescriptorMap *sDescriptors;
|
||||
|
||||
namespace BPrivate {
|
||||
|
||||
@@ -355,7 +355,7 @@ delete_descriptor(int fd)
|
||||
|
||||
if (sDescriptors->size() == 0) {
|
||||
delete sDescriptors;
|
||||
sDescriptors = 0;
|
||||
sDescriptors = NULL;
|
||||
}
|
||||
return error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user