diff options
author | Guillem Jover <guillem@debian.org> | 2018-04-04 03:06:44 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2018-05-03 02:22:27 +0200 |
commit | 2d7566140335d5338e5a98278d4df762936f67f4 (patch) | |
tree | 714cb7537c23da829dadc9bd68d2ad2927c17459 /src/trigcmd.c | |
parent | f1cc66e522a475710aa51a6d164a8cc0eda3cae7 (diff) | |
download | dpkg-2d7566140335d5338e5a98278d4df762936f67f4.tar.gz |
libdpkg: Use a single struct filenamenode definition
The struct filenamenode hash implementation is lightweight, and once
split from the bulk of the on-disk database handling there's no point
in reimplementing it, and then redefining the same struct in multiple
places, which is rather confusing for the reader, and even for static
analyzers.
Closes: #746766
Diffstat (limited to 'src/trigcmd.c')
-rw-r--r-- | src/trigcmd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/trigcmd.c b/src/trigcmd.c index 312cd8718..bc0d2f9a2 100644 --- a/src/trigcmd.c +++ b/src/trigcmd.c @@ -229,6 +229,8 @@ main(int argc, const char *const *argv) badusage(_("illegal awaited package name '%.250s': %.250s"), bypackage, badname); + filesdbinit(); + activate = argv[0]; badname = trig_name_is_illegal(activate); if (badname) |