[Tracker] [PATCH] Potential crasher in set_language()



Hello,

a patch to fix a potential crasher in tracker_set_language() function :

- g_free() was called whether pointer to free could be NULL;
- we were mixing allocated strings and on-stack strings;
- added tracker_get_english_lang_code() function and put back tmap
implementation in tracker-utils.c (avoid warnings at building time)

+ cosmetic changes : I removed some empty lines for instance.


Can I commit?


Laurent.

Attachment: fix-potential-crash+cleanups.diff.tar.gz
Description: application/compressed-tar

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]