diff options
-rw-r--r-- | hotplug-rule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hotplug-rule.c b/hotplug-rule.c index cb31c3f..1f3189d 100644 --- a/hotplug-rule.c +++ b/hotplug-rule.c @@ -325,7 +325,7 @@ static void cmd_add_string(const char *pattern, struct blob_attr *msg) int len = 0; bool var = false; - blobmsg_alloc_string_buffer(&b, NULL, 1); + dest = blobmsg_alloc_string_buffer(&b, NULL, 1); str = alloca(strlen(pattern) + 1); strcpy(str, pattern); next = str; |