]> git.ipfire.org Git - thirdparty/systemd.git/commit
path: avoid an allocation in path_spec_watch
authorMichal Schmidt <mschmidt@redhat.com>
Wed, 6 Mar 2013 18:28:55 +0000 (19:28 +0100)
committerMichal Schmidt <mschmidt@redhat.com>
Fri, 8 Mar 2013 09:58:51 +0000 (10:58 +0100)
commit180d6802e585e8a2826b76872438641b73e3fa6f
tree253d20cf0ffa84bb66f6c73ea449f102453d13d4
parenta740c14c59907f370a6b3a3ba5a86fada88cb07e
path: avoid an allocation in path_spec_watch

No need for strdup. We can slice the path in place if we always undo it
afterwards.
src/core/path.c