mime.c: local vars were not static; avoid useless file loads..
commit85b38af4909db8bf23f6f931a860a5654488b218
authorSteffen (Daode) Nurpmeso <sdaoden@users.sf.net>
Fri, 20 Jun 2014 21:49:37 +0000 (20 23:49 +0200)
committerSteffen (Daode) Nurpmeso <sdaoden@users.sf.net>
Tue, 24 Jun 2014 19:12:57 +0000 (24 21:12 +0200)
treef181bc195151807911b508b0bd64d43cf300429f
parent41796ee8d5d7add73dffc0d18e2df812cd3abca4
mime.c: local vars were not static; avoid useless file loads..

If we don't find any mime.types(5) files and don't have builtin
commands we yet uselessly try to initialize over and over again.
Instead require the use to `mimetypes clear' to force reload.
Note this can only happen if there are no builtin mimetypes, so
check that (should be optimized away if impossible).
mime.c