summaryrefslogtreecommitdiff
path: root/usr.sbin/extattrctl
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2000-12-14 01:51:39 +0000
committerRobert Watson <rwatson@FreeBSD.org>2000-12-14 01:51:39 +0000
commit58ef75f0220aa049c53c4c11bdfa0aa1cf9c58f5 (patch)
tree80c2c5a3074b89f686d96ffb352447ecde052ab1 /usr.sbin/extattrctl
parentff93e72c080d4b8cc31a2644b5c863eb887447c0 (diff)
Notes
Diffstat (limited to 'usr.sbin/extattrctl')
-rw-r--r--usr.sbin/extattrctl/extattrctl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/extattrctl/extattrctl.c b/usr.sbin/extattrctl/extattrctl.c
index 78026878fecf..c05ec956b9e2 100644
--- a/usr.sbin/extattrctl/extattrctl.c
+++ b/usr.sbin/extattrctl/extattrctl.c
@@ -91,7 +91,10 @@ initattr(int argc, char *argv[])
overwrite = 1;
break;
case 'p':
- fs_path = strdup(optarg);
+ if ((fs_path = strdup(optarg)) == NULL) {
+ perror("strdup");
+ return(-1);
+ }
break;
case '?':
default: