diff options
| author | Colin Percival <cperciva@FreeBSD.org> | 2005-08-09 09:49:01 +0000 |
|---|---|---|
| committer | Colin Percival <cperciva@FreeBSD.org> | 2005-08-09 09:49:01 +0000 |
| commit | 4c3cffeb642f10eba30d5256ad9f295596596b70 (patch) | |
| tree | f0ba2efaae866ad26517187229b8cd7222b4eef9 /usr.sbin | |
| parent | 22aec2a31537deea151b92438ed9051e677f6062 (diff) | |
Notes
Diffstat (limited to 'usr.sbin')
| -rw-r--r-- | usr.sbin/portsnap/make_index/make_index.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/portsnap/make_index/make_index.c b/usr.sbin/portsnap/make_index/make_index.c index 6139fad0a6cc0..fbb8dd9168649 100644 --- a/usr.sbin/portsnap/make_index/make_index.c +++ b/usr.sbin/portsnap/make_index/make_index.c @@ -116,6 +116,8 @@ makelist(char * str, size_t * n) /* Allocate and fill an array */ d = malloc(*n * sizeof(DEP)); + if (d == NULL) + err(1, "malloc(DEP)"); for (i = 0; i < *n; i++) { d[i].name = strdup2(strsep(&str, " ")); |
