config: Add lang member to config
[petitboot] / lib / pb-config / pb-config.c
index d43a5abba718bd1eedab88149b4d4aeaf6063589..fbaa7cb908b04000f7ae8958516aff981183e003 100644 (file)
@@ -74,5 +74,10 @@ struct config *config_copy(void *ctx, const struct config *src)
        else
                dest->boot_device = NULL;
 
+       if (src->lang && strlen(src->lang))
+               dest->lang = talloc_strdup(dest, src->lang);
+       else
+               dest->lang = NULL;
+
        return dest;
 }