Fix a coredump when commands in ~/.exrc prepended with addresses.
PR: 13000
This commit is contained in:
parent
35762dce78
commit
510108dbec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51277
@ -7,6 +7,8 @@
|
|||||||
* See the LICENSE file for redistribution information.
|
* See the LICENSE file for redistribution information.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* $FreeBSD$ */
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
@ -2307,7 +2309,7 @@ ex_badaddr(sp, cp, ba, nret)
|
|||||||
* underlying file, that's the real problem.
|
* underlying file, that's the real problem.
|
||||||
*/
|
*/
|
||||||
if (sp->ep == NULL) {
|
if (sp->ep == NULL) {
|
||||||
ex_emsg(sp, cp->name, EXM_NOFILEYET);
|
ex_emsg(sp, cp ? cp->name : NULL, EXM_NOFILEYET);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user