From d93b40867893cedbac32970ddb38701479807e29 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 15 Jun 2006 11:24:01 +0000 Subject: 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) --- source3/utils/net_usershare.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/utils') 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'; } } -- cgit