diff options
author | Jeremy Allison <jra@samba.org> | 2009-01-02 11:38:24 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-01-02 11:38:24 -0800 |
commit | 2234173220c51c2e37818149ddf41421672904c0 (patch) | |
tree | f41a3f462234afa7f9bbb434e357c9b3a0fbbdad /source4 | |
parent | 9c92cb763653644e129b0777b3f8fc2f333bb7c6 (diff) | |
download | samba-2234173220c51c2e37818149ddf41421672904c0.tar.gz samba-2234173220c51c2e37818149ddf41421672904c0.tar.bz2 samba-2234173220c51c2e37818149ddf41421672904c0.zip |
Fix warnings in make test code.
Jeremy.
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/util_smb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/torture/util_smb.c b/source4/torture/util_smb.c index f88a641059..732b84af73 100644 --- a/source4/torture/util_smb.c +++ b/source4/torture/util_smb.c @@ -656,7 +656,10 @@ double torture_create_procs(struct torture_context *tctx, pid_t mypid = getpid(); srandom(((int)mypid) ^ ((int)time(NULL))); - asprintf(&myname, "CLIENT%d", i); + if (asprintf(&myname, "CLIENT%d", i) == -1) { + printf("asprintf failed\n"); + return -1; + } lp_set_cmdline(tctx->lp_ctx, "netbios name", myname); free(myname); |