p will always be true, check for p[0] instead. [CID-144]
This commit is contained in:
@@ -822,7 +822,7 @@ talk(int force_erase)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* p2 now points to the first '\n' */
|
/* p2 now points to the first '\n' */
|
||||||
for (height = 0; p; height++) {
|
for (height = 0; p[0]; height++) {
|
||||||
int w;
|
int w;
|
||||||
*p2 = 0;
|
*p2 = 0;
|
||||||
if ((w = XTextWidth(font, p, p2 - p)) > width)
|
if ((w = XTextWidth(font, p, p2 - p)) > width)
|
||||||
|
Reference in New Issue
Block a user