Fixed the segmentation fault inducing bug I just added a moment ago.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403736
This commit is contained in:
Davis King 2010-07-07 23:43:30 +00:00
parent 4c9f271559
commit abc6f88b22

View File

@ -682,7 +682,7 @@ void process_file (
// If the scope we are leaving is the top class on the class_stack
// then we need to either pop it into its containing class or put it
// into the classes output vector.
if (namespaces.back() == class_stack.top().name)
if (class_stack.size() > 0 && namespaces.back() == class_stack.top().name)
{
// if this class is a inner_class of another then push it into the
// public_inner_classes field of it's containing class