Search
j0ke.net Open Build Service
>
Projects
>
GFS
>
sysconfig
> sysconfig_getcfg-empty_hwdesc_is_invalid.285579.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File sysconfig_getcfg-empty_hwdesc_is_invalid.285579.patch of Package sysconfig (Revision 1)
Currently displaying revision
1
,
show latest
--- tools/get_config_lib.c 2007-07-05 14:17:00.000000000 +0000 +++ tools/get_config_lib.c 2007-07-06 05:18:05.000000000 +0000 @@ -515,9 +515,11 @@ } case invalid: /* - * No keywords found. Assume it's an interface. + * No keywords found. + * Assume it's an interface, except if it's empty. */ - if (hwdesc->interface_num < MAX_INTERFACE_NUM) { + if ( hwdesc->interface_num < MAX_INTERFACE_NUM + && hwdesc->hwdesc[0] != '\0' ) { strcpy(hwdesc->interface[hwdesc->interface_num++], hwdesc->hwdesc); hwdesc->hwdesc_type = interface;