mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 23:30:07 +01:00
@kind might be NULL. There are 3 forms of the hash-update functions for string: str(), str0(), and strarr(). - str0() is when the string might be NULL. - str() does not allow the string to be NULL - strarr() is like str(), except it adds a G_STATIC_ASSERT() that the argument is a C array. The reason why a difference between str() and str0() exists, is because str0() hashes NULL different from a "" or any other string. This has an overhead, because it effectively must hash another bit of information that tells whether a string was passed or not. The reason is, that hashing a tupple of two strings should always yield a different hash value, even for "aa",""; "a","a"; "","aa", where naive concatentation would yield identical hash values in all three cases. Fixes: |
||
|---|---|---|
| .. | ||
| tests | ||
| wifi | ||
| nm-fake-platform.c | ||
| nm-fake-platform.h | ||
| nm-linux-platform.c | ||
| nm-linux-platform.h | ||
| nm-platform-private.h | ||
| nm-platform-utils.c | ||
| nm-platform-utils.h | ||
| nm-platform.c | ||
| nm-platform.h | ||
| nmp-netns.c | ||
| nmp-netns.h | ||
| nmp-object.c | ||
| nmp-object.h | ||