File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -4136,7 +4136,8 @@ static ENGINE *engine_dynamic(const char *path)
4136
4136
return NULL ; /* FAILED */
4137
4137
}
4138
4138
if (path ) { /* strip directory and extension */
4139
- char * ptr ;
4139
+ const char * ptr ;
4140
+ char * dot ;
4140
4141
4141
4142
ptr = strrchr (path , '/' );
4142
4143
if (!ptr ) /* no slash -> try backslash */
@@ -4146,11 +4147,11 @@ static ENGINE *engine_dynamic(const char *path)
4146
4147
if (!strncmp (ptr , "lib" , 3 ))
4147
4148
ptr += 3 ; /* skip the "lib" prefix */
4148
4149
} else /* directory separator not found */
4149
- ptr = ( char * ) path ;
4150
+ ptr = path ;
4150
4151
id = OPENSSL_strdup (ptr );
4151
- ptr = strchr (id , '.' );
4152
- if (ptr ) /* file extensions found */
4153
- * ptr = '\0' ; /* remove them */
4152
+ dot = strchr (id , '.' );
4153
+ if (dot ) /* file extensions found */
4154
+ * dot = '\0' ; /* remove them */
4154
4155
} else {
4155
4156
id = OPENSSL_strdup ("pkcs11" );
4156
4157
}
You can’t perform that action at this time.
0 commit comments