mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 22:32:07 -04:00
quiet compiler warning about ambiguous 'else'
This commit is contained in:
parent
8c2ff0cdc0
commit
ff966df508
1 changed files with 3 additions and 2 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: data.c,v 1.5 2000/01/31 14:38:01 tale Exp $ */
|
||||
/* $Id: data.c,v 1.6 2000/01/31 18:52:43 gson Exp $ */
|
||||
|
||||
/* Principal Author: Ted Lemon */
|
||||
|
||||
|
|
@ -164,11 +164,12 @@ omapi_data_strcmp(omapi_data_t *s1, const char *s2) {
|
|||
len = slen;
|
||||
|
||||
order = memcmp(s1->u.buffer.value, s2, len);
|
||||
if (order == 0)
|
||||
if (order == 0) {
|
||||
if (s1->u.buffer.len > slen)
|
||||
order = 1;
|
||||
else if (s1->u.buffer.len < slen)
|
||||
order = -1;
|
||||
}
|
||||
|
||||
return (order);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue