summaryrefslogtreecommitdiff
path: root/usr/src/cmd/ldmad/mdesc_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/ldmad/mdesc_lib.c')
-rw-r--r--usr/src/cmd/ldmad/mdesc_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/cmd/ldmad/mdesc_lib.c b/usr/src/cmd/ldmad/mdesc_lib.c
index cab9560fd6..44221b9f70 100644
--- a/usr/src/cmd/ldmad/mdesc_lib.c
+++ b/usr/src/cmd/ldmad/mdesc_lib.c
@@ -210,7 +210,7 @@ md_add_string_property(mmd_t *mdp, md_node_t *nodep, char *sp, char *bufp)
propp = md_new_property(mdp, nodep, MDET_PROP_STR, sp);
if (propp == NULL) {
md_free_data_block(mdp, dbp);
- return (NULL);
+ return (ENOMEM);
}
propp->d.dbp = dbp;
return (0);