From eecdab621578c060c906da9b863a55e3577ed041 Mon Sep 17 00:00:00 2001
From: midipix <writeonce@midipix.org>
Date: Sun, 21 Mar 2021 10:11:47 +0000
Subject: driver: slbt_init_flavor_settings(): properly handle the -shrext
 argument.

---
 src/driver/slbt_driver_ctx.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'src/driver')

diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 4812076..7e170d2 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -1005,7 +1005,6 @@ static void slbt_init_flavor_settings(
 {
 	const struct slbt_host_params *     host;
 	const struct slbt_flavor_settings * settings;
-	const char *                        dot;
 
 	host = ahost ? ahost : &cctx->host;
 
@@ -1032,8 +1031,7 @@ static void slbt_init_flavor_settings(
 	memcpy(psettings,settings,sizeof(*settings));
 
 	if (cctx->shrext)
-		psettings->dsosuffix = (dot = strrchr(cctx->shrext,'.'))
-			? dot : cctx->shrext;
+		psettings->dsosuffix = cctx->shrext;
 }
 
 static int slbt_init_ldrpath(
-- 
cgit v1.2.3