summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2017-04-13 12:32:35 -0700
committerMark Spruiell <mes@zeroc.com>2017-04-13 12:32:35 -0700
commit0bf2a43aad594673e5994dba5a894be623d91690 (patch)
treebd537396fe523b71fb9c82915a29bd3e07d34440 /cpp/src
parentignore enumerator redefinitions when necessary (diff)
downloadice-0bf2a43aad594673e5994dba5a894be623d91690.tar.bz2
ice-0bf2a43aad594673e5994dba5a894be623d91690.tar.xz
ice-0bf2a43aad594673e5994dba5a894be623d91690.zip
Preprocessor fix
Diffstat (limited to 'cpp/src')
-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);
}