summaryrefslogtreecommitdiffstats
path: root/contrib/sendmail/libsm/t-memstat.c
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2014-02-01 22:27:40 +0000
committergshapiro <gshapiro@FreeBSD.org>2014-02-01 22:27:40 +0000
commit048f3c3a11405d77cd183778c62e808af43a1745 (patch)
tree589bcee6ac0a3ccc6301e6b247fa4791aa064a4c /contrib/sendmail/libsm/t-memstat.c
parent9e0e0be832ff8d29664ae5fbd751236ae85847ab (diff)
downloadFreeBSD-src-048f3c3a11405d77cd183778c62e808af43a1745.zip
FreeBSD-src-048f3c3a11405d77cd183778c62e808af43a1745.tar.gz
MFC: Merge sendmail 8.14.8
Diffstat (limited to 'contrib/sendmail/libsm/t-memstat.c')
-rw-r--r--contrib/sendmail/libsm/t-memstat.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/contrib/sendmail/libsm/t-memstat.c b/contrib/sendmail/libsm/t-memstat.c
index 3bfe394..a4622b6 100644
--- a/contrib/sendmail/libsm/t-memstat.c
+++ b/contrib/sendmail/libsm/t-memstat.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005-2007 Sendmail, Inc. and its suppliers.
+ * Copyright (c) 2005-2007 Proofpoint, Inc. and its suppliers.
* All rights reserved.
*
* By using this file, you agree to the terms and conditions set
@@ -8,7 +8,7 @@
*/
#include <sm/gen.h>
-SM_IDSTR(id, "@(#)$Id: t-memstat.c,v 1.9 2007/03/14 21:41:09 ca Exp $")
+SM_IDSTR(id, "@(#)$Id: t-memstat.c,v 1.11 2013/11/22 20:51:43 ca Exp $")
#include <sm/misc.h>
@@ -63,6 +63,12 @@ main(argc, argv)
case 'r':
resource = strdup(optarg);
+ if (resource == NULL)
+ {
+ fprintf(stderr, "strdup(%s) failed\n",
+ optarg);
+ exit(1);
+ }
break;
case 's':
OpenPOWER on IntegriCloud