Skip to content

Updates#48

Merged
ac000 merged 2 commits into
masterfrom
updates
May 23, 2026
Merged

Updates#48
ac000 merged 2 commits into
masterfrom
updates

Conversation

@ac000

@ac000 ac000 commented May 23, 2026

Copy link
Copy Markdown
Owner

No description provided.

ac000 added 2 commits May 22, 2026 23:27
Define the ll variable with the __cleanup_free macro. This allows to
remove the free(3) and also get rid of the added FILE * variable as we
can go back to directly returning the result from fopen(3), seeing as ll
will now be free'd automatically when it goes out of scope.

This provides a nice cleanup to commit 774ae8b ("Fix a couple of
compiler warnings").

Signed-off-by: Andrew Clayton <ac@sigsegv.uk>
Since libmtdac 1.6.2+ when calling an endpoint that only takes an
optional query string and if we are not passing one, we can simply pass
params as NULL, rather than building a params array with a NULL member.

Signed-off-by: Andrew Clayton <ac@sigsegv.uk>
Copilot AI review requested due to automatic review settings May 23, 2026 02:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes small internal cleanups in the ITSA CLI implementation, simplifying an API call site and tightening memory handling in log file selection.

Changes:

  • Pass NULL instead of an empty compound-literal params array to mtd_ep() when listing UK savings accounts.
  • Refactor set_log_fp() to rely on __cleanup_free for ll and return fopen() directly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ac000 ac000 merged commit 0729b08 into master May 23, 2026
9 checks passed
@ac000 ac000 deleted the updates branch May 23, 2026 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants