[Rpm-maint] [rpm-software-management/rpm] Undefined pointer comparison in macro.c (#1602)
Michael Schroeder
notifications at github.com
Fri Mar 26 10:18:24 UTC 2021
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210326/ead94ca8/attachment.html>
More information about the Rpm-maint
mailing list