summaryrefslogtreecommitdiff
path: root/src/usbg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usbg.c')
-rw-r--r--src/usbg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/usbg.c b/src/usbg.c
index 61027e3..720da9a 100644
--- a/src/usbg.c
+++ b/src/usbg.c
@@ -2761,6 +2761,9 @@ int usbg_add_config_function(usbg_config *c, const char *name, usbg_function *f)
goto out;
}
+ if (!name)
+ name = f->name;
+
b = usbg_get_binding(c, name);
if (b) {
ERROR("duplicate binding name\n");