From f6586a637f638c05e7a8946ab9fab449403a9cf7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Vivek=20Das=C2=A0Mohapatra?= <vivek@collabora.co.uk>
Date: Fri, 19 May 2017 20:12:54 +0100
Subject: [PATCH] Use a pre-existing flag variable instead of repeating the
 same test

---
 capsule/capsule-dlmopen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/capsule/capsule-dlmopen.c b/capsule/capsule-dlmopen.c
index 7c355a8db..55954b5d0 100644
--- a/capsule/capsule-dlmopen.c
+++ b/capsule/capsule-dlmopen.c
@@ -576,7 +576,7 @@ dso_find (const char *name, ldlibs_t *ldlibs, int i)
             sanitise_ldlibs(ldlibs);
             safe_strncpy( prefixed, ldlibs->prefix.path, PATH_MAX );
 
-            if( name[0] == '/' )
+            if( absolute )
             {
                 safe_strncpy( prefixed + plen, name, PATH_MAX - plen );
             }
-- 
GitLab