mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
segv1
This commit is contained in:
parent
53021408a6
commit
59c6d29394
@ -122,6 +122,7 @@ ncbytesappend(NCbytes* bb, char elem)
|
||||
int
|
||||
ncbytescat(NCbytes* bb, const char* s)
|
||||
{
|
||||
if(bb == NULL) return ncbytesfail();
|
||||
if(s == NULL) return 1;
|
||||
ncbytesappendn(bb,(void*)s,strlen(s)+1); /* include trailing null*/
|
||||
/* back up over the trailing null*/
|
||||
|
@ -492,6 +492,9 @@ makes3fullpath(const char* rooturl, const char* bucket, const char* prefix, cons
|
||||
{
|
||||
int stat = NC_NOERR;
|
||||
|
||||
assert(url != NULL);
|
||||
assert(rooturl != NULL);
|
||||
|
||||
ncbytescat(url,rooturl);
|
||||
|
||||
if(bucket) {
|
||||
|
Loading…
Reference in New Issue
Block a user