]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
flacdec_close(): Be liberal in what you accept.
authorAndre Noll <maan@systemlinux.org>
Tue, 10 Apr 2012 05:38:20 +0000 (07:38 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 3 Jun 2012 11:04:01 +0000 (13:04 +0200)
Functions like close() which terminate an instance of some subsystem
should always be idempotent, i.e. when calling such a function twice
with the same argument, the second call should be a noop.

However, flacdec_close() violates this rule because it dereferences
its private pointer unconditionally. This patch makes the function
idempotent.


No differences found