Of course the initialization can be easily fixed by doing a
```
*q = 0;  /* terminate */
```
at the top of the do loop and
```
q++;    /* move forward */
```
at the bottom. That way, q can be initialized to buf. (It will be decremented 
to buf-1 for empty lines nevertheless.)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1602#issuecomment-808097430
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to