Fix bug #1517, a possible segfault in lookup().
1 file changed