This bug is exported from the Coverity Integration Manager on Canonical's servers. For information on how this is done please see this website: https://wiki.ubuntu.com/CanonicalProductStrategy/Coverity CID: 12653 Checker: REVERSE_INULL Category: No category available CWE definition: http://cwe.mitre.org/data/definitions/476.html File: /tmp/buildd/bamf-0.4.0daily13.01.11/src/bamf-matcher.c Function: list_prepend_desktop_file_env_directories Code snippet: 1037 if (env) 1038 { 1039 data_dirs = g_strsplit (env, ":", 0); 1040 CID 12653 - REVERSE_INULL {CovLStrv2{{t{Assigning: {0} {1}= {2}.}{"data"}{}{"data_dirs"}}}} {CovLStrv2{{t{Directly dereferencing pointer {0}.}{"data"}}}} 1041 for (data = data_dirs; *data; data++) 1042 { 1043 path = g_build_filename (*data, "applications", NULL); 1044 if (g_file_test (path, G_FILE_TEST_IS_DIR) && 1045 !g_list_find_custom (dirs, path, (GCompareFunc) g_strcmp0)) 1046 {
This bug is exported from the Coverity Integration Manager on Canonical's servers. For information on how this is done please see this website: https:/ /wiki.ubuntu. com/CanonicalPr oductStrategy/ Coverity cwe.mitre. org/data/ definitions/ 476.html bamf-0. 4.0daily13. 01.11/src/ bamf-matcher. c desktop_ file_env_ directories {t{Assigning: {0} {1}= {2}.}{" data"}{ }{"data_ dirs"}} }} {t{Directly dereferencing pointer {0}.}{"data"}}}}
CID: 12653
Checker: REVERSE_INULL
Category: No category available
CWE definition: http://
File: /tmp/buildd/
Function: list_prepend_
Code snippet:
1037 if (env)
1038 {
1039 data_dirs = g_strsplit (env, ":", 0);
1040
CID 12653 - REVERSE_INULL
{CovLStrv2{
{CovLStrv2{
1041 for (data = data_dirs; *data; data++)
1042 {
1043 path = g_build_filename (*data, "applications", NULL);
1044 if (g_file_test (path, G_FILE_TEST_IS_DIR) &&
1045 !g_list_find_custom (dirs, path, (GCompareFunc) g_strcmp0))
1046 {