2026-05-25 05:09 ftp://ftp.de.debian.org/debian/pool/main/x/xdg-user-dirs-gtk/xdg-user-dirs-gtk_0.16.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-117-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: bc04c0d (2026-05-22 08:18:49 +0200) count: 15 15 elapsed-time: 0.3 0.3 head-timing-info: old-timing-info: head results: xdg-user-dirs-gtk-0.16/parse.c:11:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] xdg-user-dirs-gtk-0.16/parse.c:43:10: error: Returning pointer to local variable 'content' that will be invalid when returning. [returnDanglingLifetime] xdg-user-dirs-gtk-0.16/parse.c:41:37: note: Passed to 'g_strchomp'. xdg-user-dirs-gtk-0.16/parse.c:34:16: note: Variable created here. xdg-user-dirs-gtk-0.16/parse.c:43:10: note: Returning pointer to local variable 'content' that will be invalid when returning. xdg-user-dirs-gtk-0.16/parse.c:211:5: warning: Return value of function g_file_set_contents() is not used. [ignoredReturnValue] xdg-user-dirs-gtk-0.16/parse.c:138:3: error: Memory leak: dir.type [memleak] xdg-user-dirs-gtk-0.16/parse.c:138:3: error: Memory leak: dir.path [memleak] xdg-user-dirs-gtk-0.16/parse.c:193:10: style: Variable 'l' can be declared as pointer to const [constVariablePointer] xdg-user-dirs-gtk-0.16/parse.c:194:16: style: Variable 'bookmark' can be declared as pointer to const [constVariablePointer] xdg-user-dirs-gtk-0.16/update.c:68:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdg-user-dirs-gtk-0.16/update.c:183:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_BUTTONS_NONE [valueFlowBailoutIncompleteVar] xdg-user-dirs-gtk-0.16/update.c:304:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] xdg-user-dirs-gtk-0.16/update.c:102:40: error: Invalid g_file_open_tmp() argument nr 2. A nul-terminated string is required. [invalidFunctionArgStr] xdg-user-dirs-gtk-0.16/update.c:41:9: style: Variable 'str' can be declared as pointer to const [constVariablePointer] xdg-user-dirs-gtk-0.16/update.c:85:30: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] xdg-user-dirs-gtk-0.16/update.c:295:16: style: Variable 'desktop_entry' can be declared as pointer to const [constVariablePointer] xdg-user-dirs-gtk-0.16/update.c:298:9: style: Variable 'old_locale' can be declared as pointer to const [constVariablePointer] diff: DONE