Kaydet (Commit) 764ec213 authored tarafından David Tardon's avatar David Tardon

improve error message for nonexist. path

... which is currently somewhat misleading, because it mentions
libmerged.so.

Change-Id: I1ab21ce0fe2f94eba1831c2c977d900827f320f1
üst 7f73ea2e
......@@ -155,6 +155,13 @@ static void *lok_dlopen( const char *install_path, char ** _imp_lib )
if (!install_path)
return NULL;
struct stat dir_st;
if (stat(install_path, &dir_st) != 0)
{
fprintf(stderr, "installation path \"%s\" does not exist\n", install_path);
return NULL;
}
// allocate large enough buffer
partial_length = strlen(install_path);
imp_lib = (char *) malloc(partial_length + sizeof(TARGET_LIB) + sizeof(TARGET_MERGED_LIB) + 2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment