projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gui: Unselect data in data editor when the datasheet is replaced.
[pspp]
/
src
/
libpspp
/
pool.c
diff --git
a/src/libpspp/pool.c
b/src/libpspp/pool.c
index 7a8a591da58a7e84ebaf6952f784cec17f7571d0..7f3175d477bde1d758f5f358378fa448b30a60ab 100644
(file)
--- a/
src/libpspp/pool.c
+++ b/
src/libpspp/pool.c
@@
-1,5
+1,5
@@
/* PSPP - a program for statistical analysis.
/* PSPP - a program for statistical analysis.
- Copyright (C) 2000, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2010
, 2011
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-299,7
+299,8
@@
pool_alloc (struct pool *pool, size_t amt)
void *
pool_alloc_unaligned (struct pool *pool, size_t amt)
{
void *
pool_alloc_unaligned (struct pool *pool, size_t amt)
{
- assert (pool != NULL);
+ if (pool == NULL)
+ return xmalloc (amt);
#ifndef DISCRETE_BLOCKS
/* Strings need not be aligned on any boundary, but some
#ifndef DISCRETE_BLOCKS
/* Strings need not be aligned on any boundary, but some