Skip to content
Snippets Groups Projects
Commit f6586a63 authored by Vivek Das Mohapatra's avatar Vivek Das Mohapatra
Browse files

Use a pre-existing flag variable instead of repeating the same test

parent 027cf10f
Branches
Tags
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
...@@ -576,7 +576,7 @@ dso_find (const char *name, ldlibs_t *ldlibs, int i) ...@@ -576,7 +576,7 @@ dso_find (const char *name, ldlibs_t *ldlibs, int i)
sanitise_ldlibs(ldlibs); sanitise_ldlibs(ldlibs);
safe_strncpy( prefixed, ldlibs->prefix.path, PATH_MAX ); safe_strncpy( prefixed, ldlibs->prefix.path, PATH_MAX );
if( name[0] == '/' ) if( absolute )
{ {
safe_strncpy( prefixed + plen, name, PATH_MAX - plen ); safe_strncpy( prefixed + plen, name, PATH_MAX - plen );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment