summaryrefslogtreecommitdiffstats
path: root/source/rpc_parse
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-11-17 03:19:17 +0000
committerJeremy Allison <jra@samba.org>2001-11-17 03:19:17 +0000
commit9148bb9eaa67de60c3b0b4709a9c05a840c20c66 (patch)
tree25bd75c351650c5683d913ed4bbeda20bfb98de9 /source/rpc_parse
parentd70674312d8b98367ccdbbc12fe880f9f539d258 (diff)
downloadsamba-9148bb9eaa67de60c3b0b4709a9c05a840c20c66.tar.gz
samba-9148bb9eaa67de60c3b0b4709a9c05a840c20c66.tar.xz
samba-9148bb9eaa67de60c3b0b4709a9c05a840c20c66.zip
Tidyups when I was doing the big merge...
Jeremy.
Diffstat (limited to 'source/rpc_parse')
-rw-r--r--source/rpc_parse/parse_spoolss.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/rpc_parse/parse_spoolss.c b/source/rpc_parse/parse_spoolss.c
index 5a13403fee5..6404a83d514 100644
--- a/source/rpc_parse/parse_spoolss.c
+++ b/source/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++;
}