summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Preprocessor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Slice/Preprocessor.cpp')
-rw-r--r--cpp/src/Slice/Preprocessor.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp
index 9ed4eee10ab..e275bcd3024 100644
--- a/cpp/src/Slice/Preprocessor.cpp
+++ b/cpp/src/Slice/Preprocessor.cpp
@@ -173,7 +173,10 @@ FILE*
Slice::Preprocessor::preprocess(bool keepComments, const string& extraArg)
{
vector<string> args;
- args.push_back(extraArg);
+ if(!extraArg.empty())
+ {
+ args.push_back(extraArg);
+ }
return preprocess(keepComments, args);
}