From 8e27997c008ba188cd11528df6bad04dc2996941 Mon Sep 17 00:00:00 2001 From: Maurice Kalinowski Date: Thu, 24 Jul 2008 12:57:41 +0000 Subject: [PATCH] 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 --- src/build/libroot/fs_descriptors.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/build/libroot/fs_descriptors.cpp b/src/build/libroot/fs_descriptors.cpp index 4e4fb118c2..d4599e289d 100644 --- a/src/build/libroot/fs_descriptors.cpp +++ b/src/build/libroot/fs_descriptors.cpp @@ -23,7 +23,7 @@ using std::map; static const int kVirtualDescriptorStart = 10000; typedef map 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; }