1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.

This commit is contained in:
Luke Leighton 0001-01-01 00:00:00 +00:00
parent 5fa3a3f710
commit 81b5304fe5

View File

@ -2395,7 +2395,7 @@ BOOL get_unix_grps(int *p_ngroups, struct group **p_groups)
DEBUG(10,("get_unix_grps\n"));
if (p_ngroups == NULL || *p_groups == NULL)
if (p_ngroups == NULL || p_groups == NULL)
{
return False;
}
@ -2909,12 +2909,24 @@ enum remote_arch_types get_remote_arch(void)
}
/*******************************************************************
align a pointer to a multiple of 4 bytes.
********************************************************************/
char *align4(char *q, char *base)
{
int mod = PTR_DIFF(q, base) & 3;
if (mod != 0)
{
q += mod;
}
return q;
}
/*******************************************************************
align a pointer to a multiple of 2 bytes
********************************************************************/
char *align2(char *q, char *base)
{
if ((q - base) & 1)
if (PTR_DIFF(q, base) & 1)
{
q++;
}