diff options
author | Volker Lendecke <vl@sernet.de> | 2007-11-24 16:32:38 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-11-24 18:11:11 -0800 |
commit | 85a84f72ffc440fb71744cb72de2dba07793123c (patch) | |
tree | b00a0af2af0c96a4b400ccced2c1baefa120d6d9 | |
parent | 49949f0b85007c7c2b3c340c12f3d18909862135 (diff) | |
download | samba-85a84f72ffc440fb71744cb72de2dba07793123c.tar.gz samba-85a84f72ffc440fb71744cb72de2dba07793123c.tar.xz samba-85a84f72ffc440fb71744cb72de2dba07793123c.zip |
Remove a static
-rw-r--r-- | source/utils/net_usershare.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/utils/net_usershare.c b/source/utils/net_usershare.c index 658c0089da6..19fa8fad2f9 100644 --- a/source/utils/net_usershare.c +++ b/source/utils/net_usershare.c @@ -41,7 +41,7 @@ struct { static const char *get_us_error_code(enum usershare_err us_err) { - static pstring out; + char *result; int idx = 0; while (us_errs[idx].us_errstr != NULL) { @@ -51,8 +51,10 @@ static const char *get_us_error_code(enum usershare_err us_err) idx++; } - slprintf(out, sizeof(out), "Usershare error code (0x%x)", (unsigned int)us_err); - return out; + result = talloc_asprintf(talloc_tos(), "Usershare error code (0x%x)", + (unsigned int)us_err); + SMB_ASSERT(result != NULL); + return result; } /* The help subsystem for the USERSHARE subcommand */ |