[Rpm-maint] [rpm-software-management/rpm] Fix rpm2archive behavior with multiple arguments (#681)

Robbie Harwood notifications at github.com
Thu Apr 25 17:53:18 UTC 2019


frozencemetery commented on this pull request.



>  
-    ts = rpmtsFree(ts);
+    if (argc == 1)
+	argv[argc++] = "-";

Per C standard, argv[argc] is always defined to be a NULL pointer.  (Section 5.1.2.2.1, paragraph 2, in ISO/IEC 9899:1999).

-- 
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/pull/681#discussion_r278663743
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190425/cb6d0aec/attachment.html>


More information about the Rpm-maint mailing list