src/share/back/transport.c

Print this page
rev 6641 : [mq]: PrivateTransportTest

@@ -115,10 +115,13 @@
         plibdir = buf;
     }
 
     /* Construct library name (simple name or full path) */
     dbgsysBuildLibName(libname, sizeof(libname), plibdir, name);
+    if (strlen(libname) == 0) {
+        return NULL;
+    }
 
     /* dlopen (unix) / LoadLibrary (windows) the transport library */
     handle = dbgsysLoadLibrary(libname, buf, sizeof(buf));
     return handle;
 }