header, use assert

This commit is contained in:
Steve Checkoway
2004-03-28 23:19:35 +00:00
parent d038179117
commit c0f8c589da
@@ -18,6 +18,7 @@ using namespace std;
#include <stack>
#include <map>
#include <sys/errno.h>
#include <assert.h>
#include "StdString.h"
#include "InstallerFile.h"
#include "Processor.h"
@@ -74,7 +75,7 @@ const CString GetPath(const CString& ID)
if (path[temp - 1] == '\n')
path[temp - 1] = '\000';
}
ASSERT(ptr);
assert(ptr);
while (*ptr != '\000' && (*ptr == ' ' || *ptr == '\t'))
++ptr;
if (*ptr == '/')