Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Aug 2013 10:48:13 GMT
From:      dpl@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r255526 - soc2013/dpl/libnv
Message-ID:  <201308051048.r75AmDTb073973@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dpl
Date: Mon Aug  5 10:48:12 2013
New Revision: 255526
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=255526

Log:
  Switched to the more updated version of libnv.
  

Modified:
  soc2013/dpl/libnv/nvpair.c

Modified: soc2013/dpl/libnv/nvpair.c
==============================================================================
--- soc2013/dpl/libnv/nvpair.c	Mon Aug  5 10:11:27 2013	(r255525)
+++ soc2013/dpl/libnv/nvpair.c	Mon Aug  5 10:48:12 2013	(r255526)
@@ -875,7 +875,7 @@
 		return (ptr);
 	}
 
-	value = malloc(sizeof(nvp->nvp_datasize));
+	value = malloc(nvp->nvp_datasize);
 	if (value == NULL)
 		return (NULL);
 
@@ -963,7 +963,7 @@
 		return (ptr);
 	}
 
-	value = malloc(sizeof(nvp->nvp_datasize));
+	value = malloc(nvp->nvp_datasize);
 	if (value == NULL)
 		return (NULL);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308051048.r75AmDTb073973>