2026-05-05 21:48 ftp://ftp.de.debian.org/debian/pool/main/x/xdotool/xdotool_3.20160805.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --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.12.85+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.70 compiler: g++ (20250906) 15.2.0 cppcheck: head 2.20.0 head-info: 6278f6b (2026-05-05 15:01:04 +0200) count: 275 274 elapsed-time: 1.9 1.7 head-timing-info: old-timing-info: head results: xdotool-3.20160805.1/cmd_behave.c:54:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_behave.c:124:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdotool-3.20160805.1/cmd_behave.c:21:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_behave.c:27:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_behave_screen_edge.c:87:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_behave_screen_edge.c:198:9: style: Condition 'need_new_context' is always true [knownConditionTrueFalse] xdotool-3.20160805.1/cmd_behave_screen_edge.c:150:26: note: Assignment 'need_new_context=1', assigned value is 1 xdotool-3.20160805.1/cmd_behave_screen_edge.c:198:9: note: Condition 'need_new_context' is always true xdotool-3.20160805.1/cmd_behave_screen_edge.c:200:14: warning: If memory allocation fails, then there is a possible null pointer dereference: tmpcontext [nullPointerOutOfMemory] xdotool-3.20160805.1/cmd_behave_screen_edge.c:199:26: note: Assuming allocation function fails xdotool-3.20160805.1/cmd_behave_screen_edge.c:199:26: note: Assignment 'tmpcontext=calloc(1,sizeof(struct context_t))', assigned value is 0 xdotool-3.20160805.1/cmd_behave_screen_edge.c:200:14: note: Null pointer dereference xdotool-3.20160805.1/cmd_behave_screen_edge.c:346:7: style: Redundant assignment of 'dpy' to itself. [selfAssignment] xdotool-3.20160805.1/cmd_behave_screen_edge.c:347:8: style: Redundant assignment of 'xerr' to itself. [selfAssignment] xdotool-3.20160805.1/cmd_behave_screen_edge.c:42:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_behave_screen_edge.c:54:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_behave_screen_edge.c:295:15: style: Variable 'trigger' is assigned a value that is never used. [unreadVariable] xdotool-3.20160805.1/cmd_behave_screen_edge.c:346:7: style: Variable 'dpy' is assigned a value that is never used. [unreadVariable] xdotool-3.20160805.1/cmd_behave_screen_edge.c:347:8: style: Variable 'xerr' is assigned a value that is never used. [unreadVariable] xdotool-3.20160805.1/cmd_click.c:57:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_click.c:6:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_click.c:11:9: style: Variable 'window_arg' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_click.c:20:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_exec.c:55:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_exec.c:8:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_exec.c:20:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_get_desktop.c:25:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_get_desktop.c:5:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_get_desktop.c:9:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_get_desktop_for_window.c:27:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_get_desktop_for_window.c:5:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_get_desktop_for_window.c:9:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_get_desktop_viewport.c:29:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_get_desktop_viewport.c:5:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_get_desktop_viewport.c:9:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_get_display_geometry.c:33:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_get_display_geometry.c:5:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_get_display_geometry.c:14:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_get_num_desktops.c:25:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_get_num_desktops.c:5:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_get_num_desktops.c:9:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_getactivewindow.c:25:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_getactivewindow.c:6:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_getactivewindow.c:9:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_getmouselocation.c:40:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_getmouselocation.c:7:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_getmouselocation.c:10:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_getwindowfocus.c:35:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_getwindowfocus.c:8:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_getwindowfocus.c:11:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_getwindowgeometry.c:42:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_getwindowgeometry.c:4:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_getwindowgeometry.c:13:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_getwindowname.c:25:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_getwindowname.c:4:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_getwindowname.c:7:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_getwindowpid.c:26:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_getwindowpid.c:5:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_getwindowpid.c:8:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_key.c:58:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_key.c:117:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdotool-3.20160805.1/cmd_key.c:14:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_key.c:26:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_mousedown.c:38:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_mousedown.c:7:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_mousedown.c:11:9: style: Variable 'window_arg' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_mousedown.c:14:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_mousemove.c:73:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_mousemove.c:206:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_mousemove.c:21:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_mousemove.c:22:9: style: Variable 'window_arg' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_mousemove.c:38:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_mousemove.c:137:61: style: Parameter 'mousemove' can be declared as pointer to const [constParameterPointer] xdotool-3.20160805.1/cmd_mousemove.c:167:15: style: Variable 's' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_mousemove_relative.c:63:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_mousemove_relative.c:7:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_mousemove_relative.c:19:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_mouseup.c:38:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_mouseup.c:7:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_mouseup.c:14:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_search.c:69:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_ANY [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_search.c:198:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdotool-3.20160805.1/cmd_search.c:23:17: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_search.c:71:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_set_desktop.c:36:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_set_desktop.c:4:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_set_desktop.c:13:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_set_desktop_for_window.c:28:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_set_desktop_for_window.c:4:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_set_desktop_for_window.c:10:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_set_desktop_viewport.c:24:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_set_desktop_viewport.c:5:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_set_desktop_viewport.c:8:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_set_num_desktops.c:24:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_set_num_desktops.c:4:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_set_num_desktops.c:8:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_set_window.c:47:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_set_window.c:11:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_set_window.c:13:9: style: Variable 'role' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_set_window.c:13:23: style: Variable 'icon' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_set_window.c:13:37: style: Variable 'name' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_set_window.c:13:51: style: Variable '_class' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_set_window.c:14:9: style: Variable 'classname' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_set_window.c:19:17: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_sleep.c:35:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_sleep.c:49:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdotool-3.20160805.1/cmd_sleep.c:8:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_sleep.c:16:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_type.c:69:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_type.c:131:17: warning: If resource allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfResources] xdotool-3.20160805.1/cmd_type.c:122:21: note: Assuming allocation function fails xdotool-3.20160805.1/cmd_type.c:122:21: note: Assignment 'input=fdopen(0,"r")', assigned value is 0 xdotool-3.20160805.1/cmd_type.c:131:17: note: Null pointer dereference xdotool-3.20160805.1/cmd_type.c:10:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_type.c:13:9: style: Variable 'terminator' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_type.c:14:9: style: Variable 'file' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_type.c:36:17: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_window_select.c:25:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_window_select.c:6:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_window_select.c:9:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_windowactivate.c:37:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_windowactivate.c:5:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_windowactivate.c:13:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_windowclose.c:27:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_windowclose.c:5:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_windowclose.c:9:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_windowfocus.c:35:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_windowfocus.c:5:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_windowfocus.c:12:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_windowkill.c:27:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_windowkill.c:5:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_windowkill.c:9:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_windowmap.c:37:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_windowmap.c:5:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_windowmap.c:13:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_windowminimize.c:38:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_windowminimize.c:6:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_windowminimize.c:14:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_windowmove.c:68:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_windowmove.c:173:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_windowmove.c:192:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdotool-3.20160805.1/cmd_windowmove.c:23:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_windowmove.c:36:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_windowmove.c:109:16: style: Unused variable: original_w [unusedVariable] xdotool-3.20160805.1/cmd_windowmove.c:109:28: style: Unused variable: original_h [unusedVariable] xdotool-3.20160805.1/cmd_windowraise.c:27:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_windowraise.c:5:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_windowraise.c:9:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_windowreparent.c:28:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_windowreparent.c:5:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_windowreparent.c:12:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_windowsize.c:48:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_windowsize.c:15:17: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/cmd_windowsize.c:23:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_windowunmap.c:37:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/cmd_windowunmap.c:5:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/cmd_windowunmap.c:13:24: style: Variable 'longopts' can be declared as const array [constVariable] xdotool-3.20160805.1/t/showmodifiers.c:19:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable code [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/t/showmodifiers.c:15:11: style: Variable 'i' is assigned a value that is never used. [unreadVariable] xdotool-3.20160805.1/xdo.c:88:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:105:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:153:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XDO_VERSION [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:159:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IsUnmapped [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:256:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CWX [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:266:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PResizeInc [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:314:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CWWidth [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:330:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CWOverrideRedirect [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:360:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XUrgencyHint [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:379:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PropModeReplace [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:466:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:506:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:539:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:570:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:603:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:632:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:664:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:695:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:727:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XC_target [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:779:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:797:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CurrentTime [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:806:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CurrentTime [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:931:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:945:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:970:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:1015:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:1141:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:1226:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:1257:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NoSymbol [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:1359:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:1415:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:1441:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AnyPropertyType [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:1504:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:1531:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XkbUseCoreKbd [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:1567:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ShiftMask [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:1588:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ShiftMapIndex [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:1619:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ShiftMapIndex [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:1670:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Button1MotionMask [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:1697:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Button1MotionMask [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:1726:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Atom [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:1774:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:1815:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ClientMessage [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:1847:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Atom [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:1901:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:1915:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:1942:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo.c:117:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] xdotool-3.20160805.1/xdo.c:162:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdotool-3.20160805.1/xdo.c:432:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdotool-3.20160805.1/xdo.c:452:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdotool-3.20160805.1/xdo.c:934:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdotool-3.20160805.1/xdo.c:952:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdotool-3.20160805.1/xdo.c:1159:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdotool-3.20160805.1/xdo.c:1555:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdotool-3.20160805.1/xdo.c:1749:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdotool-3.20160805.1/xdo.c:1764:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xdotool-3.20160805.1/xdo.c:1370:16: style: The statement 'if (strptr!=NULL) strptr=NULL' is logically equivalent to 'strptr=NULL'. [duplicateConditionalAssign] xdotool-3.20160805.1/xdo.c:1371:14: note: Assignment 'strptr=NULL' xdotool-3.20160805.1/xdo.c:1370:16: note: Condition 'strptr!=NULL' is redundant xdotool-3.20160805.1/xdo.c:381:47: style: Condition 'ret==0' is always true [knownConditionTrueFalse] xdotool-3.20160805.1/xdo.c:380:11: note: Assuming that condition 'ret==0' is not redundant xdotool-3.20160805.1/xdo.c:381:47: note: Condition 'ret==0' is always true xdotool-3.20160805.1/xdo.c:980:7: warning: %lc in format string (no. 1) requires 'unsigned long' but the argument type is 'signed wchar_t'. [invalidPrintfArgType_uint] xdotool-3.20160805.1/xdo.c:111:10: warning: If memory allocation fails, then there is a possible null pointer dereference: xdo [nullPointerOutOfMemory] xdotool-3.20160805.1/xdo.c:110:15: note: Assuming allocation function fails xdotool-3.20160805.1/xdo.c:110:15: note: Assignment 'xdo=malloc(sizeof(struct xdo_t))', assigned value is 0 xdotool-3.20160805.1/xdo.c:111:10: note: Null pointer dereference xdotool-3.20160805.1/xdo.c:113:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xdo [nullPointerOutOfMemory] xdotool-3.20160805.1/xdo.c:110:15: note: Assuming allocation function fails xdotool-3.20160805.1/xdo.c:110:15: note: Assignment 'xdo=malloc(sizeof(struct xdo_t))', assigned value is 0 xdotool-3.20160805.1/xdo.c:113:3: note: Null pointer dereference xdotool-3.20160805.1/xdo.c:114:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xdo [nullPointerOutOfMemory] xdotool-3.20160805.1/xdo.c:110:15: note: Assuming allocation function fails xdotool-3.20160805.1/xdo.c:110:15: note: Assignment 'xdo=malloc(sizeof(struct xdo_t))', assigned value is 0 xdotool-3.20160805.1/xdo.c:114:3: note: Null pointer dereference xdotool-3.20160805.1/xdo.c:1288:31: warning: If memory allocation fails, then there is a possible null pointer dereference: xdo [nullPointerOutOfMemory] xdotool-3.20160805.1/xdo.c:110:15: note: Assuming allocation function fails xdotool-3.20160805.1/xdo.c:110:15: note: Assignment 'xdo=malloc(sizeof(struct xdo_t))', assigned value is 0 xdotool-3.20160805.1/xdo.c:124:22: note: Calling function '_xdo_has_xtest', 1st argument 'xdo' value is 0 xdotool-3.20160805.1/xdo.c:1288:31: note: Null pointer dereference xdotool-3.20160805.1/xdo.c:83:28: style:inconclusive: Function 'xdo_new' argument 1 names different: declaration 'display' definition 'display_name'. [funcArgNamesDifferent] xdotool-3.20160805.1/xdo.h:206:28: note: Function 'xdo_new' argument 1 names different: declaration 'display' definition 'display_name'. xdotool-3.20160805.1/xdo.c:83:28: note: Function 'xdo_new' argument 1 names different: declaration 'display' definition 'display_name'. xdotool-3.20160805.1/xdo.c:291:50: style:inconclusive: Function 'xdo_set_window_size' argument 2 names different: declaration 'wid' definition 'window'. [funcArgNamesDifferent] xdotool-3.20160805.1/xdo.h:480:50: note: Function 'xdo_set_window_size' argument 2 names different: declaration 'wid' definition 'window'. xdotool-3.20160805.1/xdo.c:291:50: note: Function 'xdo_set_window_size' argument 2 names different: declaration 'wid' definition 'window'. xdotool-3.20160805.1/xdo.c:291:62: style:inconclusive: Function 'xdo_set_window_size' argument 3 names different: declaration 'w' definition 'width'. [funcArgNamesDifferent] xdotool-3.20160805.1/xdo.h:480:59: note: Function 'xdo_set_window_size' argument 3 names different: declaration 'w' definition 'width'. xdotool-3.20160805.1/xdo.c:291:62: note: Function 'xdo_set_window_size' argument 3 names different: declaration 'w' definition 'width'. xdotool-3.20160805.1/xdo.c:291:73: style:inconclusive: Function 'xdo_set_window_size' argument 4 names different: declaration 'h' definition 'height'. [funcArgNamesDifferent] xdotool-3.20160805.1/xdo.h:480:66: note: Function 'xdo_set_window_size' argument 4 names different: declaration 'h' definition 'height'. xdotool-3.20160805.1/xdo.c:291:73: note: Function 'xdo_set_window_size' argument 4 names different: declaration 'h' definition 'height'. xdotool-3.20160805.1/xdo.c:863:51: style:inconclusive: Function 'xdo_get_mouse_location' argument 2 names different: declaration 'x' definition 'x_ret'. [funcArgNamesDifferent] xdotool-3.20160805.1/xdo.h:284:51: note: Function 'xdo_get_mouse_location' argument 2 names different: declaration 'x' definition 'x_ret'. xdotool-3.20160805.1/xdo.c:863:51: note: Function 'xdo_get_mouse_location' argument 2 names different: declaration 'x' definition 'x_ret'. xdotool-3.20160805.1/xdo.c:863:63: style:inconclusive: Function 'xdo_get_mouse_location' argument 3 names different: declaration 'y' definition 'y_ret'. [funcArgNamesDifferent] xdotool-3.20160805.1/xdo.h:284:59: note: Function 'xdo_get_mouse_location' argument 3 names different: declaration 'y' definition 'y_ret'. xdotool-3.20160805.1/xdo.c:863:63: note: Function 'xdo_get_mouse_location' argument 3 names different: declaration 'y' definition 'y_ret'. xdotool-3.20160805.1/xdo.c:864:33: style:inconclusive: Function 'xdo_get_mouse_location' argument 4 names different: declaration 'screen_num' definition 'screen_num_ret'. [funcArgNamesDifferent] xdotool-3.20160805.1/xdo.h:284:67: note: Function 'xdo_get_mouse_location' argument 4 names different: declaration 'screen_num' definition 'screen_num_ret'. xdotool-3.20160805.1/xdo.c:864:33: note: Function 'xdo_get_mouse_location' argument 4 names different: declaration 'screen_num' definition 'screen_num_ret'. xdotool-3.20160805.1/xdo.c:1110:83: style:inconclusive: Function 'xdo_send_keysequence_window_down' argument 3 names different: declaration 'keysequence' definition 'keyseq'. [funcArgNamesDifferent] xdotool-3.20160805.1/xdo.h:397:38: note: Function 'xdo_send_keysequence_window_down' argument 3 names different: declaration 'keysequence' definition 'keyseq'. xdotool-3.20160805.1/xdo.c:1110:83: note: Function 'xdo_send_keysequence_window_down' argument 3 names different: declaration 'keysequence' definition 'keyseq'. xdotool-3.20160805.1/xdo.c:1115:81: style:inconclusive: Function 'xdo_send_keysequence_window_up' argument 3 names different: declaration 'keysequence' definition 'keyseq'. [funcArgNamesDifferent] xdotool-3.20160805.1/xdo.h:389:36: note: Function 'xdo_send_keysequence_window_up' argument 3 names different: declaration 'keysequence' definition 'keyseq'. xdotool-3.20160805.1/xdo.c:1115:81: note: Function 'xdo_send_keysequence_window_up' argument 3 names different: declaration 'keysequence' definition 'keyseq'. xdotool-3.20160805.1/xdo.c:1120:78: style:inconclusive: Function 'xdo_send_keysequence_window' argument 3 names different: declaration 'keysequence' definition 'keyseq'. [funcArgNamesDifferent] xdotool-3.20160805.1/xdo.h:381:33: note: Function 'xdo_send_keysequence_window' argument 3 names different: declaration 'keysequence' definition 'keyseq'. xdotool-3.20160805.1/xdo.c:1120:78: note: Function 'xdo_send_keysequence_window' argument 3 names different: declaration 'keysequence' definition 'keyseq'. xdotool-3.20160805.1/xdo.c:1882:50: style:inconclusive: Function 'xdo_minimize_window' argument 2 names different: declaration 'wid' definition 'window'. [funcArgNamesDifferent] xdotool-3.20160805.1/xdo.h:614:50: note: Function 'xdo_minimize_window' argument 2 names different: declaration 'wid' definition 'window'. xdotool-3.20160805.1/xdo.c:1882:50: note: Function 'xdo_minimize_window' argument 2 names different: declaration 'wid' definition 'window'. xdotool-3.20160805.1/xdo.c:1559:53: style: Parameter 'modmap' can be declared as pointer to const [constParameterPointer] xdotool-3.20160805.1/xdo.c:1802:8: style: Variable 'viewport_data' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/xdo.c:1927:28: style: Parameter 'xdo' can be declared as pointer to const [constParameterPointer] xdotool-3.20160805.1/xdo.c:973:28: error: Uninitialized variable: &key.key [uninitvar] xdotool-3.20160805.1/xdo.c:117:13: style: Variable 'display' is assigned a value that is never used. [unreadVariable] xdotool-3.20160805.1/xdo.c:441:11: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] xdotool-3.20160805.1/xdo.c:1353:9: style: Variable 'i' is assigned a value that is never used. [unreadVariable] xdotool-3.20160805.1/xdo.c:1560:16: style: Variable 'j' is assigned a value that is never used. [unreadVariable] xdotool-3.20160805.1/xdo.c:1611:15: style: Variable 'keycode' is assigned a value that is never used. [unreadVariable] xdotool-3.20160805.1/xdo.c:1904:1: error: va_list 'args' was opened but not closed by va_end(). [va_end_missing] xdotool-3.20160805.1/xdo.c:1912:11: error: va_list 'args' was opened but not closed by va_end(). [va_end_missing] xdotool-3.20160805.1/xdo_search.c:37:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Window [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo_search.c:83:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo_search.c:182:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_EXTENDED [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo_search.c:197:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IsViewable [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo_search.c:261:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo_search.c:377:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Window [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdo_search.c:88:77: style: Parameter 're' can be declared as pointer to const [constParameterPointer] xdotool-3.20160805.1/xdo_search.c:123:78: style: Parameter 're' can be declared as pointer to const [constParameterPointer] xdotool-3.20160805.1/xdo_search.c:146:82: style: Parameter 're' can be declared as pointer to const [constParameterPointer] xdotool-3.20160805.1/xdo_search.c:33:9: style: Variable 'i' is assigned a value that is never used. [unreadVariable] xdotool-3.20160805.1/xdotool.c:48:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdotool.c:65:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Window [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdotool.c:81:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdotool.c:106:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdotool.c:153:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdotool.c:340:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdotool.c:519:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdotool.c:582:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdotool.c:628:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdotool.c:638:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] xdotool-3.20160805.1/xdotool.c:112:28: style: Condition 'context->argc>min_arg' is always true [knownConditionTrueFalse] xdotool-3.20160805.1/xdotool.c:109:28: note: Assuming that condition 'context->argc==min_arg' is not redundant xdotool-3.20160805.1/xdotool.c:112:28: note: Condition 'context->argc>min_arg' is always true xdotool-3.20160805.1/xdotool.c:341:7: error: Memory leak: script_argv [memleak] xdotool-3.20160805.1/xdotool.c:355:5: error: Resource leak: input [resourceLeak] xdotool-3.20160805.1/xdotool.c:355:5: error: Memory leak: script_argv [memleak] xdotool-3.20160805.1/xdotool.c:442:11: error: Common realloc mistake: 'script_argv' nulled but not freed upon failure [memleakOnRealloc] xdotool-3.20160805.1/xdotool.c:634:11: style: Redundant assignment of 'context' to itself. [selfAssignment] xdotool-3.20160805.1/xdotool.c:70:32: style: Parameter 'context' can be declared as pointer to const [constParameterPointer] xdotool-3.20160805.1/xdotool.c:277:22: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] xdotool-3.20160805.1/xdotool.c:361:9: style: Variable 'token' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/xdotool.c:512:24: style: Variable 'long_options' can be declared as const array [constVariable] xdotool-3.20160805.1/xdotool.c:572:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] xdotool-3.20160805.1/xdotool.c:623:31: style: Parameter 'context' can be declared as pointer to const [constParameterPointer] xdotool-3.20160805.1/xdotool.c:503:10: warning: Uninitialized variable: result [uninitvar] xdotool-3.20160805.1/xdotool.c:364:37: note: Assuming condition is false xdotool-3.20160805.1/xdotool.c:503:10: note: Uninitialized variable: result xdotool-3.20160805.1/xdotool.c:570:17: style: Variable 'cmd_found' is assigned a value that is never used. [unreadVariable] xdotool-3.20160805.1/xdotool.c:571:9: style: Variable 'i' is assigned a value that is never used. [unreadVariable] xdotool-3.20160805.1/xdotool.c:634:11: style: Variable 'context' is assigned a value that is never used. [unreadVariable] xdotool-3.20160805.1/xdotool.c:631:1: error: va_list 'args' was opened but not closed by va_end(). [va_end_missing] xdotool-3.20160805.1/xdotool.c:641:1: error: va_list 'args' was opened but not closed by va_end(). [va_end_missing] xdotool-3.20160805.1/xdo.c:1288:31: warning: If memory allocation fails, then there is a possible null pointer dereference: xdo [ctunullpointerOutOfMemory] xdotool-3.20160805.1/xdo.c:110:15: note: Assuming allocation function fails xdotool-3.20160805.1/xdo.c:110:15: note: Assignment 'xdo=malloc(sizeof(struct xdo_t))', assigned value is 0 xdotool-3.20160805.1/xdo.c:124:21: note: Calling function _xdo_has_xtest, 1st argument is null xdotool-3.20160805.1/xdo.c:1288:31: note: Dereferencing argument xdo that is null diff: head xdotool-3.20160805.1/cmd_behave_screen_edge.c:42:9: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] head xdotool-3.20160805.1/cmd_behave_screen_edge.c:54:24: style: Variable 'longopts' can be declared as const array [constVariable] 2.20.0 xdotool-3.20160805.1/xdotool.c:467:7: error: Common realloc mistake: 'script_argv' nulled but not freed upon failure [memleakOnRealloc] DONE