mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 22:10:14 +01:00
core/trivial: add code comment to nm_utils_stable_id_parse()
This commit is contained in:
parent
8fc40206ec
commit
9c8a937280
1 changed files with 6 additions and 1 deletions
|
|
@ -3350,8 +3350,13 @@ nm_utils_stable_id_generated_complete(const char *stable_id_generated)
|
|||
static void
|
||||
_stable_id_append(GString *str, const char *substitution)
|
||||
{
|
||||
if (!substitution)
|
||||
if (!substitution) {
|
||||
/* Would have been nicer to append "=NIL;" to differentiate between
|
||||
* empty and NULL.
|
||||
*
|
||||
* Can't do that now, as it would change behavior. */
|
||||
substitution = "";
|
||||
}
|
||||
g_string_append_printf(str, "=%zu{%s}", strlen(substitution), substitution);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue