diff options
author | Roy Marples <roy@marples.name> | 2007-10-08 11:16:22 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-10-08 11:16:22 +0000 |
commit | cd4bce7e8da691b8be0a88292eee13852b826b7e (patch) | |
tree | 26ab1fb49a790b8855b0dc60781551896c065931 /src/librc-depend.c | |
parent | a89ceb7e2c994e2a3907d9c906d99021a6e15788 (diff) |
Wups, should be xstrdup
Diffstat (limited to 'src/librc-depend.c')
-rw-r--r-- | src/librc-depend.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/librc-depend.c b/src/librc-depend.c index 1591eba3..1e4225b8 100644 --- a/src/librc-depend.c +++ b/src/librc-depend.c @@ -110,7 +110,7 @@ rc_depinfo_t *rc_deptree_load (void) depinfo = depinfo->next; } memset (depinfo, 0, sizeof (rc_depinfo_t)); - depinfo->service = strdup (e); + depinfo->service = xstrdup (e); deptype = NULL; continue; } @@ -139,7 +139,7 @@ rc_depinfo_t *rc_deptree_load (void) } if (! deptype->type) - deptype->type = strdup (type); + deptype->type = xstrdup (type); rc_strlist_addsort (&deptype->services, e); } @@ -717,7 +717,7 @@ bool rc_deptree_update (void) depinfo = last_depinfo->next; } memset (depinfo, 0, sizeof (rc_depinfo_t)); - depinfo->service = strdup (service); + depinfo->service = xstrdup (service); } /* We may not have any depends */ @@ -747,7 +747,7 @@ bool rc_deptree_update (void) deptype = last_deptype->next; } memset (deptype, 0, sizeof (rc_deptype_t)); - deptype->type = strdup (type); + deptype->type = xstrdup (type); } } @@ -794,7 +794,7 @@ bool rc_deptree_update (void) last_depinfo->next = xmalloc (sizeof (rc_depinfo_t)); di = last_depinfo->next; memset (di, 0, sizeof (rc_depinfo_t)); - di->service = strdup (service); + di->service = xstrdup (service); } } } @@ -844,7 +844,7 @@ bool rc_deptree_update (void) dt = last_deptype->next; } memset (dt, 0, sizeof (rc_deptype_t)); - dt->type = strdup (deppairs[i].addto); + dt->type = xstrdup (deppairs[i].addto); } already_added = false; |