001-1.1.6-0001-nls-Move-init_nls-after-log_init.patch 824 B

12345678910111213141516171819202122232425262728293031
  1. From d097d3c02da148c73c46ea5e6402a01b78cc1b5a Mon Sep 17 00:00:00 2001
  2. From: Justin Maggard <jmaggard@netgear.com>
  3. Date: Mon, 16 Nov 2015 09:57:07 -0800
  4. Subject: [PATCH] nls: Move init_nls() after log_init().
  5. Otherwise the DPRINTF in minidlna.c:init_nls() will always fail to log.
  6. Pointed out by Shrimpkin.
  7. ---
  8. minidlna.c | 2 +-
  9. 1 file changed, 1 insertion(+), 1 deletion(-)
  10. diff --git a/minidlna.c b/minidlna.c
  11. index 7933f54..8977a17 100644
  12. --- a/minidlna.c
  13. +++ b/minidlna.c
  14. @@ -1021,11 +1021,11 @@ main(int argc, char **argv)
  15. for (i = 0; i < L_MAX; i++)
  16. log_level[i] = E_WARN;
  17. - init_nls();
  18. ret = init(argc, argv);
  19. if (ret != 0)
  20. return 1;
  21. + init_nls();
  22. DPRINTF(E_WARN, L_GENERAL, "Starting " SERVER_NAME " version " MINIDLNA_VERSION ".\n");
  23. if (sqlite3_libversion_number() < 3005001)
  24. --
  25. 2.11.0