Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.4
man
man-db-2.4.3-section.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File man-db-2.4.3-section.dif of Package man
--- src/man.c +++ src/man.c 2006-06-13 14:01:19.000000000 +0000 @@ -1142,7 +1142,7 @@ static inline const char *is_section (co { const char **vs; - for (vs = section_list; *vs; vs++) { + for (vs = section_list; vs && *vs; vs++) { if (STREQ (*vs, name)) return name; /* allow e.g. 3perl but disallow 8139too and libfoo */ @@ -2565,7 +2565,8 @@ static int compare_candidates (const str * section_list. */ const char **sp; - for (sp = section_list; *sp; ++sp) { + + for (sp = section_list; sp && *sp; ++sp) { if (!*(*sp + 1)) { /* No extension */ if (!sec_left && **sp == *(left->ext)) @@ -3209,7 +3210,7 @@ static int man (const char *name, int *f } else { const char **sp; - for (sp = section_list; *sp; sp++) { + for (sp = section_list; sp && *sp; sp++) { char **mp; for (mp = manpathlist; *mp; mp++)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor