diff options
Diffstat (limited to 'include/nm-macros-internal.h')
-rw-r--r-- | include/nm-macros-internal.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/nm-macros-internal.h b/include/nm-macros-internal.h index 3767a13397..405051f382 100644 --- a/include/nm-macros-internal.h +++ b/include/nm-macros-internal.h @@ -236,4 +236,13 @@ nm_clear_g_source (guint *id) /*****************************************************************************/ +static inline char * +nm_strstrip (char *str) +{ + /* g_strstrip doesn't like NULL. */ + return str ? g_strstrip (str) : NULL; +} + +/*****************************************************************************/ + #endif /* __NM_MACROS_INTERNAL_H__ */ |