diff options
Diffstat (limited to 'innbbsd')
-rw-r--r-- | innbbsd/bbslink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/innbbsd/bbslink.c b/innbbsd/bbslink.c index e9ebf143..4fb1931f 100644 --- a/innbbsd/bbslink.c +++ b/innbbsd/bbslink.c @@ -1529,8 +1529,8 @@ bntplink(argc, argv) printf("MYADDR: %s\n", MYADDR); printf("MYSITE: %s\n", MYSITE); } - left = strchr(nl->protocol, '('); - right = strrchr(nl->protocol, ')'); + left = nl ? strchr(nl->protocol, '(') : NULL; + right = nl ? strrchr(nl->protocol, ')') : NULL; if (left && right) { *right = '\0'; strncpy(LINKPROTOCOL, nl->protocol, sizeof LINKPROTOCOL); |