~apport-hackers/apport/main

Viewing all changes in revision 3898.

  • Committer: Simon Chopin
  • Author(s): Benjamin Drung
  • Date: 2023-04-26 09:29:16 UTC
  • Revision ID: git-v1:215f30b94753759e38f9ea30fa5b3aa15924368a
refactor(apport): Make cwd a private variable

The global variable `cwd` is only used in `write_user_coredump`. So
defining it can be deferred until `write_user_coredump` is called and
`cwd` can be private to `write_user_coredump`.

Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: