do
echo "I will always compile before commit :-)"
done
Also fix Klokwork ID 806.
Volker
while (next_token_nr(NULL,p,NULL,sizeof(buf))) {
pstrcpy(mget_mask,cur_dir);
- if ((mask[0] != '\0') && (mget_mask[strlen(mget_mask)-1]!='\\'))
+ if ((mget_mask[0] != '\0') && (mget_mask[strlen(mget_mask)-1]!='\\'))
pstrcat(mget_mask,"\\");
if (*p == '\\')
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';
}
}