From: James Jones Date: Thu, 19 May 2022 22:56:13 +0000 (-0500) Subject: Catch the non-OSX cmd->install_path == NULL case (CID #1504302) (#4521) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=410eeb607079c3b7bd9b291be70732b917c17be1;p=thirdparty%2Ffreeradius-server.git Catch the non-OSX cmd->install_path == NULL case (CID #1504302) (#4521) --- diff --git a/scripts/jlibtool.c b/scripts/jlibtool.c index 75cef0b75cc..c35c1151c57 100644 --- a/scripts/jlibtool.c +++ b/scripts/jlibtool.c @@ -2384,7 +2384,11 @@ static void link_fixup(command_t *cmd) { char *tmp = lt_malloc(PATH_MAX + 30); - strcpy(tmp, cmd->install_path); + if (cmd->install_path) { + strcpy(tmp, cmd->install_path); + } else { + strcpy(tmp, ""); + } if (cmd->shared_name.install) { strcat(tmp, strrchr(cmd->shared_name.install, '/'));