projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70cdb5e
)
protected from dereferencing of empty pointer
author
Marc Cromme
<marc@indexdata.dk>
Tue, 24 Apr 2007 22:19:19 +0000
(22:19 +0000)
committer
Marc Cromme
<marc@indexdata.dk>
Tue, 24 Apr 2007 22:19:19 +0000
(22:19 +0000)
src/record.c
patch
|
blob
|
history
diff --git
a/src/record.c
b/src/record.c
index
016cf24
..
2ad01d2
100644
(file)
--- a/
src/record.c
+++ b/
src/record.c
@@
-1,4
+1,4
@@
-/* $Id: record.c,v 1.5 2007-04-24 22:17:05 marc Exp $
+/* $Id: record.c,v 1.6 2007-04-24 22:19:19 marc Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
@@
-19,7
+19,7
@@
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-/* $Id: record.c,v 1.5 2007-04-24 22:17:05 marc Exp $ */
+/* $Id: record.c,v 1.6 2007-04-24 22:19:19 marc Exp $ */
#include <string.h>
@@
-43,6
+43,9
@@
union data_types * data_types_assign(NMEM nmem,
{
// assert(nmem);
+ if (!data1)
+ return 0;
+
if (!*data1){
if (!nmem)
return 0;