diff options
Diffstat (limited to 'cpp/src/Slice/Scanner.cpp')
-rw-r--r-- | cpp/src/Slice/Scanner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Slice/Scanner.cpp b/cpp/src/Slice/Scanner.cpp index 10844a334a8..b945860a572 100644 --- a/cpp/src/Slice/Scanner.cpp +++ b/cpp/src/Slice/Scanner.cpp @@ -1000,7 +1000,7 @@ YY_RULE_SETUP comment += static_cast<char>(c); } } - if(comment[0] == '*') + if(!comment.empty() && comment[0] == '*') { unit->setComment(comment); } |