Remove unnecessary non-null check
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13901 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
111b517372
commit
0baa87809f
1 changed files with 2 additions and 4 deletions
|
|
@ -209,10 +209,8 @@ static char nextchar(Scanner * s) {
|
|||
if (Len(s->scanobjs) == 0)
|
||||
return 0;
|
||||
s->str = Getitem(s->scanobjs, 0);
|
||||
if (s->str) {
|
||||
s->line = Getline(s->str);
|
||||
DohIncref(s->str);
|
||||
}
|
||||
s->line = Getline(s->str);
|
||||
DohIncref(s->str);
|
||||
}
|
||||
if ((nc == '\n') && (!s->freeze_line))
|
||||
s->line++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue