aboutsummaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/Image.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/Image.c b/generic/Image.c
index 3ef66b4..d820ae8 100644
--- a/generic/Image.c
+++ b/generic/Image.c
@@ -1242,8 +1242,7 @@ ZnGetTexFont(WidgetInfo *wi,
/*
* Now locate the texture obj in the texture list for this widget.
*/
- tfi = txf->tfi;
- while (tfi != NULL) {
+ for (tfi = txf->tfi; tfi != NULL; tfi = tfi->next) {
if (tfi->wi == wi) {
tfi->refcount++;
return tfi;
@@ -1574,7 +1573,7 @@ ZnFreeTexFont(ZnTexFontInfo tfi)
TexFontInfo *prev, *scan;
for (prev=NULL, scan=this->txf->tfi; (scan!=NULL)&&(scan != this);
- prev=scan, scan=this->next);
+ prev=scan, scan=scan->next);
if (scan != this) {
return;
}