mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
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:
parent
4c9f271559
commit
abc6f88b22
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user