diff options
author | Jeremy Allison <jra@samba.org> | 2001-11-17 03:19:17 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-11-17 03:19:17 +0000 |
commit | 02eda2e251e6dcb6e0db5cd9c3cbcfa765f3d630 (patch) | |
tree | 6b0d7c4ae77b1673510672c49a0c68b844283f35 /source3/rpc_parse | |
parent | 355124adaf512eeb04a0badfcfefbce63f31f023 (diff) | |
download | samba-02eda2e251e6dcb6e0db5cd9c3cbcfa765f3d630.tar.gz samba-02eda2e251e6dcb6e0db5cd9c3cbcfa765f3d630.tar.bz2 samba-02eda2e251e6dcb6e0db5cd9c3cbcfa765f3d630.zip |
Tidyups when I was doing the big merge...
Jeremy.
(This used to be commit 9148bb9eaa67de60c3b0b4709a9c05a840c20c66)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_spoolss.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/rpc_parse/parse_spoolss.c b/source3/rpc_parse/parse_spoolss.c index 5a13403fee..6404a83d51 100644 --- a/source3/rpc_parse/parse_spoolss.c +++ b/source3/rpc_parse/parse_spoolss.c @@ -4711,7 +4711,8 @@ static BOOL uniarray_2_dosarray(BUFFER5 *buf5, fstring **ar) int n = 0; char *src; - if (buf5==NULL) return False; + if (buf5==NULL) + return False; src = (char *)buf5->buffer; *ar = NULL; @@ -4720,8 +4721,10 @@ static BOOL uniarray_2_dosarray(BUFFER5 *buf5, fstring **ar) rpcstr_pull(f, src, sizeof(f)-1, -1, 0); src = skip_unibuf(src, 2*buf5->buf_len - PTR_DIFF(src,buf5->buffer)); tar = (fstring *)Realloc(*ar, sizeof(fstring)*(n+2)); - if (!tar) return False; - else *ar = tar; + if (!tar) + return False; + else + *ar = tar; fstrcpy((*ar)[n], f); n++; } |