summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-06-15 11:24:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:28 -0500
commitd93b40867893cedbac32970ddb38701479807e29 (patch)
tree20d6257f0d82e7d16aabdbe1b6b1ba76d1c91608 /source3/utils
parent05f59b2c349d2f5a0f01b8377ba9e064d2f83e75 (diff)
downloadsamba-d93b40867893cedbac32970ddb38701479807e29.tar.gz
samba-d93b40867893cedbac32970ddb38701479807e29.tar.bz2
samba-d93b40867893cedbac32970ddb38701479807e29.zip
r16251: for i in `seq 1 1000`
do echo "I will always compile before commit :-)" done Also fix Klokwork ID 806. Volker (This used to be commit 4974c598c00abc20cfb73eee12a7c49c279e0f54)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_usershare.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_usershare.c b/source3/utils/net_usershare.c
index 1ee156c4ee..ca9ca4e6e2 100644
--- a/source3/utils/net_usershare.c
+++ b/source3/utils/net_usershare.c
@@ -129,7 +129,7 @@ int net_usershare_usage(int argc, const char **argv)
static void get_basepath(pstring basepath)
{
pstrcpy(basepath, lp_usershare_path());
- if (basepath[strlen(basepath)-1] == '/') {
+ if ((basepath[0] != '\0') && (basepath[strlen(basepath)-1] == '/')) {
basepath[strlen(basepath)-1] = '\0';
}
}