2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Update to protobuf-c 1.4.1

We already had all the relevant fixes so this is just cosmetic.
This commit is contained in:
Todd C. Miller
2022-09-20 11:27:40 -06:00
parent 7464b300d9
commit 4ee0caf07d
3 changed files with 8 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008-2015, Dave Benson and the protobuf-c authors.
* Copyright (c) 2008-2022, Dave Benson and the protobuf-c authors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -2618,14 +2618,14 @@ parse_required_member(ScannedMember *scanned_member,
return FALSE;
def_mess = scanned_member->field->default_value;
if (len >= pref_len) {
if (len >= pref_len)
subm = protobuf_c_message_unpack(scanned_member->field->descriptor,
allocator,
len - pref_len,
data + pref_len);
} else {
else
subm = NULL;
}
if (maybe_clear &&
*pmessage != NULL &&
*pmessage != def_mess)