1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-02-04 21:18:33 +00:00

minor simplification of get_string_width_special()

This commit is contained in:
Phil Sutter 2009-09-20 03:17:55 +02:00
parent 4840de39cd
commit 15e262a3ca

View File

@ -3330,13 +3330,11 @@ static int get_string_width_special(char *s, int special_index)
int width = 0;
long i;
if ((output_methods & TO_X) == 0) {
return (s) ? strlen(s) : 0;
}
if (!s) {
if (!s)
return 0;
}
if ((output_methods & TO_X) == 0)
return strlen(s);
p = strndup(s, text_buffer_size);
final = p;