diff options
Diffstat (limited to 'i2c_helper_linux.c')
-rw-r--r-- | i2c_helper_linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i2c_helper_linux.c b/i2c_helper_linux.c index f527c4e3..29fdfd41 100644 --- a/i2c_helper_linux.c +++ b/i2c_helper_linux.c @@ -100,8 +100,8 @@ int i2c_open_from_programmer_params(uint16_t addr, int force) { int fd = -1; - char *bus_str = extract_programmer_param_str("bus"); - char *device_path = extract_programmer_param_str("devpath"); + char *bus_str = extract_programmer_param_str(NULL, "bus"); + char *device_path = extract_programmer_param_str(NULL, "devpath"); if (device_path != NULL && bus_str != NULL) { msg_perr("%s: only one of bus and devpath may be specified\n", __func__); |