Drivers specified on the command line (-d) override any specified in
the configuration file.
This commit is contained in:
+4
-2
@@ -267,8 +267,10 @@ main (int argc, char **argv)
|
|||||||
} else {
|
} else {
|
||||||
// not in a driver section...
|
// not in a driver section...
|
||||||
if (strncasecmp(linebuf, "Driver ", 7) == 0) {
|
if (strncasecmp(linebuf, "Driver ", 7) == 0) {
|
||||||
driverlist[list_index] = malloc(MAX_DRIVER_NAME_SIZE);
|
if (driverlist[0] == NULL) { // check for arguments: override conf file drivers...
|
||||||
snprintf(driverlist[list_index++], MAX_DRIVER_NAME_SIZE, "%s", linebuf + 7);
|
driverlist[list_index] = malloc(MAX_DRIVER_NAME_SIZE);
|
||||||
|
snprintf(driverlist[list_index++], MAX_DRIVER_NAME_SIZE, "%s", linebuf + 7);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user