Skip to content
  • Thomas Haller's avatar
    libnm: coerce empty strings to NULL for D-Bus properties · 95ab69b7
    Thomas Haller authored
    On D-Bus level, string (s) or object paths (o) cannot be NULL.
    Thus, whenver server exposes such an object, it gets automatically
    coerced to "" or "/", respectively.
    
    On client side, libnm should coerce certain properties back, for which
    "" is just not a sensible value.
    
    For example, an empty NM_DEVICE_ETHERNET_HW_ADDRESS should be instead
    exposed as NULL.
    
    Technically, this is an API change. However, all users were well advised
    to expect both NULL and "" as possible return values and handle them
    accordingly.
    95ab69b7