mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s3-net: fix potential crash bug in display_print_driver3().
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri May 13 18:49:06 CEST 2011 on sn-devel-104
This commit is contained in:
parent
5bcc0b2138
commit
3d100216b8
@ -70,7 +70,7 @@ static void display_print_driver3(struct spoolss_DriverInfo3 *r)
|
||||
printf(_("\tConfigfile: [%s]\n\n"), r->config_file);
|
||||
printf(_("\tHelpfile: [%s]\n\n"), r->help_file);
|
||||
|
||||
for (i=0; r->dependent_files[i] != NULL; i++) {
|
||||
for (i=0; r->dependent_files && r->dependent_files[i] != NULL; i++) {
|
||||
printf(_("\tDependentfiles: [%s]\n"), r->dependent_files[i]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user