another scan-build bug fix

This commit is contained in:
Dennis Heimbigner 2012-04-30 15:58:40 +00:00
parent e0e763f4c9
commit cb25985208
5 changed files with 412 additions and 448 deletions

View File

@ -211,9 +211,12 @@ is used, then at close, the contents of the memory file will be
made persistent in the file path that was specified in the nc_create
call. If NC_DISKLESS is going to be used for creating a large classic file,
it behooves one to use either nc__create or nc_create_mp and specify
an appropriately large value of the initialsz parameter. This is
because the in-memory file is kept as a single piece of heap memory,
and specifying the initial size will reduce the number of heap reallocations.
an appropriately large value of the initialsz parameter to avoid
to many extensions to the in-memory space for the file.
Normally, NC_DISKLESS allocates space in the heap for storing
the in-memory file. If, however, the ./configure flags --enable-mmap
is used, then mmap will be used.
Note that nc_create(path,cmode,ncidp) is equivalent to the invocation of
nc__create(path,cmode,NC_SIZEHINT_DEFAULT,NULL,ncidp).

View File

@ -280,6 +280,7 @@ Note: --disable prefix indicates that the option is normally enabled.
<tr><td>--disable-shared<td>build shared libraries<td>
<tr><td>--disable-static<td>build static libraries<td>
<tr><td>--disable-largefile<td>omit support for large files<td>
<tr><td>--enable-mmap<td>Use mmap to implement NC_DISKLESS<td>
</table>
*/

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,9 @@
/* A Bison parser, made by GNU Bison 2.5. */
/* A Bison parser, made by GNU Bison 2.4.3. */
/* Bison interface for Yacc-like parsers in C
/* Skeleton interface for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
2009, 2010 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

View File

@ -459,7 +459,7 @@ oc_inq_attrstrings(OCconnection conn, OCobject node0, unsigned int i,
for(i=0;i<attr->nvalues;i++)
strings[i] = nulldup(attr->values[i]);
*stringsp = strings;
else
} else
*stringsp = NULL;
}
return OC_NOERR;