diff options
Diffstat (limited to 'hardinfo2/util.c')
| -rw-r--r-- | hardinfo2/util.c | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/hardinfo2/util.c b/hardinfo2/util.c index d2954573..9ef0c869 100644 --- a/hardinfo2/util.c +++ b/hardinfo2/util.c @@ -86,14 +86,16 @@ inline gchar *size_human_readable(gfloat size)      return g_strdup_printf("%.1f GiB", size / GiB);  } -inline void strend(gchar * str, gchar chr) +inline char *strend(gchar * str, gchar chr)  {      if (!str) -	return; +	return NULL;      char *p;      if ((p = strchr(str, chr)))  	*p = 0; + +    return str;  }  inline void remove_quotes(gchar * str) | 
