<p>headerExport() is the only thing that needs offset sorting, there's no point messing up with the header itself for this when we can just sort a copy instead. No visible functional changes, but makes headerExport() a read-only operation to the header, as it should be.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/rpm-software-management/rpm/pull/870'>https://github.com/rpm-software-management/rpm/pull/870</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Refactor the actual work from headerExport() to a helper function</li>
  <li>Avoid modifying header on export</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/870/files#diff-0">lib/header.c</a>
    (63)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/rpm-software-management/rpm/pull/870.patch'>https://github.com/rpm-software-management/rpm/pull/870.patch</a></li>
  <li><a href='https://github.com/rpm-software-management/rpm/pull/870.diff'>https://github.com/rpm-software-management/rpm/pull/870.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/pull/870?email_source=notifications&email_token=ADLPZU3Z33CP3WMIP3NV6Y3QLSOSZA5CNFSM4I2Y54Y2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HN3URWQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZUYKQOXQTBIYD37OABTQLSOSZANCNFSM4I2Y54YQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZU6FNGJWYSPSP63MFCTQLSOSZA5CNFSM4I2Y54Y2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HN3URWQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/pull/870?email_source=notifications\u0026email_token=ADLPZU3Z33CP3WMIP3NV6Y3QLSOSZA5CNFSM4I2Y54Y2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HN3URWQ",
"url": "https://github.com/rpm-software-management/rpm/pull/870?email_source=notifications\u0026email_token=ADLPZU3Z33CP3WMIP3NV6Y3QLSOSZA5CNFSM4I2Y54Y2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HN3URWQ",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>