summaryrefslogtreecommitdiff
path: root/Source/Preprocessor
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2012-11-16 19:38:48 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2012-11-16 19:38:48 +0000
commit3d6b068b8c7db307dda236b8bd1ebec5ffdcce50 (patch)
tree366d243148cebb8ac574371c382cdf3aed7976bb /Source/Preprocessor
parentc0919870f84a4666677c7f4e760f13bbcac7c579 (diff)
downloadswig-3d6b068b8c7db307dda236b8bd1ebec5ffdcce50.tar.gz
Add some assertions around use of Tell
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13896 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Source/Preprocessor')
-rw-r--r--Source/Preprocessor/cpp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Preprocessor/cpp.c b/Source/Preprocessor/cpp.c
index d68658eb6..5a7634f91 100644
--- a/Source/Preprocessor/cpp.c
+++ b/Source/Preprocessor/cpp.c
@@ -583,6 +583,7 @@ static List *find_args(String *s, int ismacro, String *macro_name) {
c = Getc(s);
if (c != '(') {
/* Not a macro, bail out now! */
+ assert(pos != -1);
Seek(s, pos, SEEK_SET);
Delete(args);
return 0;