mirror of
https://github.com/samba-team/samba.git
synced 2025-02-15 05:57:49 +03:00
Check the long_archi name is not null.
Jeremy.
This commit is contained in:
parent
a82dbb3c22
commit
9e47aa32ed
@ -676,6 +676,12 @@ BOOL get_short_archi(char *short_archi, char *long_archi)
|
||||
int i=-1;
|
||||
|
||||
DEBUG(107,("Getting architecture dependant directory\n"));
|
||||
|
||||
if (long_archi == NULL) {
|
||||
DEBUGADD(107,("Bad long_archi param.!\n"));
|
||||
return False;
|
||||
}
|
||||
|
||||
do {
|
||||
i++;
|
||||
} while ( (archi_table[i].long_archi!=NULL ) &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user