Browse Source

Merge commit 'c6f6ffb' into bfgminer

Luke Dashjr 11 years ago
parent
commit
3c335c299d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      miner.c

+ 2 - 0
miner.c

@@ -522,6 +522,8 @@ static void applog_and_exit(const char *fmt, ...)
 char *devpath_to_devid(const char *devpath)
 char *devpath_to_devid(const char *devpath)
 {
 {
 #ifndef WIN32
 #ifndef WIN32
+	if (devpath[0] != '/')
+		return NULL;
 	struct stat my_stat;
 	struct stat my_stat;
 	if (stat(devpath, &my_stat))
 	if (stat(devpath, &my_stat))
 		return NULL;
 		return NULL;