macros: add nm_strstrip() util

(cherry picked from commit d6a331bd8c)
This commit is contained in:
Thomas Haller 2015-06-16 14:55:19 +02:00
parent 5cf8d6fd19
commit fa0f53b07b

View file

@ -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__ */