summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/param.h1
-rw-r--r--lib/parameter.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/include/param.h b/include/param.h
index e7b66a4d68..a855102d15 100644
--- a/include/param.h
+++ b/include/param.h
@@ -14,7 +14,6 @@ struct param_d {
int (*set)(struct device_d *, struct param_d *param, const char *val);
unsigned int flags;
char *name;
- struct param_d *next;
char *value;
struct list_head list;
};
diff --git a/lib/parameter.c b/lib/parameter.c
index baf7720cb4..c75c21e768 100644
--- a/lib/parameter.c
+++ b/lib/parameter.c
@@ -135,7 +135,7 @@ int dev_param_set_generic(struct device_d *dev, struct param_d *p,
static const char *param_get_generic(struct device_d *dev, struct param_d *p)
{
- return p->value;
+ return p->value ? p->value : "";
}
static struct param_d *__dev_add_param(struct device_d *dev, const char *name,