diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2012-11-16 19:38:48 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2012-11-16 19:38:48 +0000 |
commit | 3d6b068b8c7db307dda236b8bd1ebec5ffdcce50 (patch) | |
tree | 366d243148cebb8ac574371c382cdf3aed7976bb /Source/Preprocessor | |
parent | c0919870f84a4666677c7f4e760f13bbcac7c579 (diff) | |
download | swig-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.c | 1 |
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; |