diff options
author | Thomas Haller <thaller@redhat.com> | 2017-01-03 15:46:58 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-01-03 15:46:59 +0100 |
commit | 2486dc5c451bdbc3dd83478ed305c03a98591ee5 (patch) | |
tree | f1df3daae230c43540a22abf3e60d22b60c50362 | |
parent | cd1466190ef01a81548791dee23fcc100615d5ce (diff) | |
download | NetworkManager-2486dc5c451bdbc3dd83478ed305c03a98591ee5.tar.gz |
exported-object: don't use "/0" for D-Bus paths but start with 1
Only use non-negative index values for the D-Bus path. This is purely
cosmetical, as the actual path value should be treated as opaque. Still,
avoid using 0 and start counting at 1.
-rw-r--r-- | src/nm-exported-object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-exported-object.c b/src/nm-exported-object.c index 0ad7301249..a53a3123e8 100644 --- a/src/nm-exported-object.c +++ b/src/nm-exported-object.c @@ -587,7 +587,7 @@ _create_export_path (NMExportedObjectClass *klass) } NM_PRAGMA_WARNING_DISABLE("-Wformat-nonliteral") - return g_strdup_printf (class_export_path, (long long unsigned) (*counter)++); + return g_strdup_printf (class_export_path, (long long unsigned) (++(*counter))); NM_PRAGMA_WARNING_REENABLE } |