mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-03 17:42:40 +00:00
Avoid another segfault when debugging.
This commit is contained in:
parent
68cdc904f5
commit
55b7f6eee4
1 changed files with 1 additions and 1 deletions
|
@ -447,7 +447,7 @@ PR_Get_Source_Line (progs_t *pr, pr_uint_t addr)
|
|||
|
||||
file = PR_Load_Source_File (pr, fname);
|
||||
|
||||
if (!file || line > file->num_lines)
|
||||
if (!file || !file->lines || line > file->num_lines)
|
||||
return va ("%s:%u", fname, line);
|
||||
|
||||
return va ("%s:%u:%.*s", fname, line, (int)file->lines[line - 1].len,
|
||||
|
|
Loading…
Reference in a new issue