2026-05-03 16:07 ftp://ftp.de.debian.org/debian/pool/main/m/mpc/mpc_0.35.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --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: e5c4a73 (2026-05-01 11:10:43 +0200) count: 121 120 elapsed-time: 0.9 0.8 head-timing-info: old-timing-info: head results: mpc-0.35/src/args.c:28:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mpc-0.35/src/args.c:60:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mpc-0.35/src/args.c:148:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable on [valueFlowBailoutIncompleteVar] mpc-0.35/src/args.c:50:49: style:inconclusive: Function 'stdinAndPreambleToArgArray' argument 2 names different: declaration '' definition 'preamble'. [funcArgNamesDifferentUnnamed] mpc-0.35/src/args.c:170:23: style:inconclusive: Function 'parse_int' argument 1 names different: declaration 's' definition 'str'. [funcArgNamesDifferent] mpc-0.35/src/args.h:49:23: note: Function 'parse_int' argument 1 names different: declaration 's' definition 'str'. mpc-0.35/src/args.c:170:23: note: Function 'parse_int' argument 1 names different: declaration 's' definition 'str'. mpc-0.35/src/args.c:170:33: style:inconclusive: Function 'parse_int' argument 2 names different: declaration 'value_r' definition 'ret'. [funcArgNamesDifferent] mpc-0.35/src/args.h:49:31: note: Function 'parse_int' argument 2 names different: declaration 'value_r' definition 'ret'. mpc-0.35/src/args.c:170:33: note: Function 'parse_int' argument 2 names different: declaration 'value_r' definition 'ret'. mpc-0.35/src/args.c:183:28: style:inconclusive: Function 'parse_unsigned' argument 1 names different: declaration 's' definition 'str'. [funcArgNamesDifferent] mpc-0.35/src/args.h:43:28: note: Function 'parse_unsigned' argument 1 names different: declaration 's' definition 'str'. mpc-0.35/src/args.c:183:28: note: Function 'parse_unsigned' argument 1 names different: declaration 's' definition 'str'. mpc-0.35/src/args.c:183:43: style:inconclusive: Function 'parse_unsigned' argument 2 names different: declaration 'value_r' definition 'ret'. [funcArgNamesDifferent] mpc-0.35/src/args.h:43:41: note: Function 'parse_unsigned' argument 2 names different: declaration 'value_r' definition 'ret'. mpc-0.35/src/args.c:183:43: note: Function 'parse_unsigned' argument 2 names different: declaration 'value_r' definition 'ret'. mpc-0.35/src/args.c:196:25: style:inconclusive: Function 'parse_float' argument 1 names different: declaration 's' definition 'str'. [funcArgNamesDifferent] mpc-0.35/src/args.h:55:25: note: Function 'parse_float' argument 1 names different: declaration 's' definition 'str'. mpc-0.35/src/args.c:196:25: note: Function 'parse_float' argument 1 names different: declaration 's' definition 'str'. mpc-0.35/src/args.c:196:37: style:inconclusive: Function 'parse_float' argument 2 names different: declaration 'value_r' definition 'ret'. [funcArgNamesDifferent] mpc-0.35/src/args.h:55:35: note: Function 'parse_float' argument 2 names different: declaration 'value_r' definition 'ret'. mpc-0.35/src/args.c:196:37: note: Function 'parse_float' argument 2 names different: declaration 'value_r' definition 'ret'. mpc-0.35/src/args.c:209:27: style:inconclusive: Function 'parse_songnum' argument 1 names different: declaration 's' definition 'str'. [funcArgNamesDifferent] mpc-0.35/src/args.h:64:27: note: Function 'parse_songnum' argument 1 names different: declaration 's' definition 'str'. mpc-0.35/src/args.c:209:27: note: Function 'parse_songnum' argument 1 names different: declaration 's' definition 'str'. mpc-0.35/src/args.c:209:37: style:inconclusive: Function 'parse_songnum' argument 2 names different: declaration 'value_r' definition 'ret'. [funcArgNamesDifferent] mpc-0.35/src/args.h:64:35: note: Function 'parse_songnum' argument 2 names different: declaration 'value_r' definition 'ret'. mpc-0.35/src/args.c:209:37: note: Function 'parse_songnum' argument 2 names different: declaration 'value_r' definition 'ret'. mpc-0.35/src/args.c:227:36: style:inconclusive: Function 'parse_int_value_change' argument 1 names different: declaration 's' definition 'str'. [funcArgNamesDifferent] mpc-0.35/src/args.h:67:36: note: Function 'parse_int_value_change' argument 1 names different: declaration 's' definition 'str'. mpc-0.35/src/args.c:227:36: note: Function 'parse_int_value_change' argument 1 names different: declaration 's' definition 'str'. mpc-0.35/src/args.c:227:66: style:inconclusive: Function 'parse_int_value_change' argument 2 names different: declaration 'value_r' definition 'ret'. [funcArgNamesDifferent] mpc-0.35/src/args.h:67:64: note: Function 'parse_int_value_change' argument 2 names different: declaration 'value_r' definition 'ret'. mpc-0.35/src/args.c:227:66: note: Function 'parse_int_value_change' argument 2 names different: declaration 'value_r' definition 'ret'. mpc-0.35/src/args.c:50:49: style: Parameter 'preamble' can be declared as pointer to const [constParameterPointer] mpc-0.35/src/audio_format.c:19:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_SAMPLE_FORMAT_FLOAT [valueFlowBailoutIncompleteVar] mpc-0.35/src/binary.c:42:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/charset.c:129:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mpc-0.35/src/charset.c:163:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] mpc-0.35/src/charset.c:134:3: error: Common realloc mistake: 'ret' nulled but not freed upon failure [memleakOnRealloc] mpc-0.35/src/charset.c:54:9: warning: If memory allocation fails, then there is a possible null pointer dereference: newp [nullPointerOutOfMemory] mpc-0.35/src/charset.c:53:29: note: Assuming allocation function fails mpc-0.35/src/charset.c:53:15: note: Assignment 'newp=(char*)malloc(errhand-to+nslash+7+1)', assigned value is 0 mpc-0.35/src/charset.c:54:9: note: Null pointer dereference mpc-0.35/src/charset.c:55:18: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mpc-0.35/src/charset.c:53:29: note: Assuming allocation function fails mpc-0.35/src/charset.c:53:15: note: Assignment 'newp=(char*)malloc(errhand-to+nslash+7+1)', assigned value is 0 mpc-0.35/src/charset.c:55:18: note: Null pointer addition mpc-0.35/src/command.c:41:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_STATE_PLAY [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:60:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_IDLE_PLAYER [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:87:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_STATE_PLAY [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:153:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_STATE_PLAY [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:171:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:194:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_OPERATOR_DEFAULT [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:224:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:281:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:426:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_STATE_STOP [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:540:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:562:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:668:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_IDLE_UPDATE [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:738:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_ENTITY_TYPE_UNKNOWN [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:744:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_ENTITY_TYPE_PLAYLIST [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:753:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_ENTITY_TYPE_DIRECTORY [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:801:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:878:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_TAG_UNKNOWN [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:953:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:1004:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_STATE_PLAY [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:1058:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_SINGLE_UNKNOWN [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:1106:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:1128:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:1151:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/command.c:684:23: warning: Logical conjunction always evaluates to false: id > 1 << 30 && id < 1000. [incorrectLogicOperator] mpc-0.35/src/command.c:198:9: style: Condition 'n<0' is always false [knownConditionTrueFalse] mpc-0.35/src/command.c:197:26: note: Assignment 'n=add_constraints(argc,argv,conn)', assigned value is greater than -1 mpc-0.35/src/command.c:198:9: note: Condition 'n<0' is always false mpc-0.35/src/command.c:805:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mpc-0.35/src/command.c:1175:3: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mpc-0.35/src/command.c:1175:3: warning: %i in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mpc-0.35/src/command.c:1175:3: warning: %i in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mpc-0.35/src/command.c:1206:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mpc-0.35/src/command.c:1206:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mpc-0.35/src/command.c:1206:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mpc-0.35/src/command.c:1206:2: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mpc-0.35/src/command.c:253:13: warning: Either the condition 'arg!=NULL' is redundant or there is possible null pointer dereference: arg. [nullPointerRedundantCheck] mpc-0.35/src/command.c:274:12: note: Assuming that condition 'arg!=NULL' is not redundant mpc-0.35/src/command.c:253:13: note: Null pointer dereference mpc-0.35/src/command.c:259:27: warning: Either the condition 'arg!=NULL' is redundant or there is possible null pointer dereference: arg. [nullPointerRedundantCheck] mpc-0.35/src/command.c:274:12: note: Assuming that condition 'arg!=NULL' is not redundant mpc-0.35/src/command.c:259:27: note: Null pointer dereference mpc-0.35/src/command.c:262:4: warning: Either the condition 'min_ptr!=NULL' is redundant or there is possible null pointer dereference: sec_ptr. [nullPointerRedundantCheck] mpc-0.35/src/command.c:267:15: note: Assuming that condition 'min_ptr!=NULL' is not redundant mpc-0.35/src/command.c:266:26: note: Assignment to 'min_ptr=strrchr(arg,':')' mpc-0.35/src/command.c:259:17: note: sec_ptr is assigned 'strrchr(arg,':')' here. mpc-0.35/src/command.c:262:4: note: Null pointer dereference mpc-0.35/src/command.c:266:27: warning: Either the condition 'arg!=NULL' is redundant or there is possible null pointer dereference: arg. [nullPointerRedundantCheck] mpc-0.35/src/command.c:274:12: note: Assuming that condition 'arg!=NULL' is not redundant mpc-0.35/src/command.c:266:27: note: Null pointer dereference mpc-0.35/src/command.c:419:6: warning: Either the condition 'arg!=NULL' is redundant or there is possible null pointer dereference: arg. [nullPointerRedundantCheck] mpc-0.35/src/command.c:465:13: note: Assuming that condition 'arg!=NULL' is not redundant mpc-0.35/src/command.c:419:6: note: Null pointer dereference mpc-0.35/src/command.c:419:17: warning: Either the condition 'arg!=NULL' is redundant or there is possible null pointer dereference: arg. [nullPointerRedundantCheck] mpc-0.35/src/command.c:465:13: note: Assuming that condition 'arg!=NULL' is not redundant mpc-0.35/src/command.c:419:17: note: Null pointer dereference mpc-0.35/src/command.c:444:14: warning: Either the condition 'arg!=NULL' is redundant or there is possible null pointer dereference: arg. [nullPointerRedundantCheck] mpc-0.35/src/command.c:465:13: note: Assuming that condition 'arg!=NULL' is not redundant mpc-0.35/src/command.c:444:14: note: Null pointer dereference mpc-0.35/src/command.c:450:28: warning: Either the condition 'arg!=NULL' is redundant or there is possible null pointer dereference: arg. [nullPointerRedundantCheck] mpc-0.35/src/command.c:465:13: note: Assuming that condition 'arg!=NULL' is not redundant mpc-0.35/src/command.c:450:28: note: Null pointer dereference mpc-0.35/src/command.c:453:5: warning: Either the condition 'min_ptr!=NULL' is redundant or there is possible null pointer dereference: sec_ptr. [nullPointerRedundantCheck] mpc-0.35/src/command.c:458:16: note: Assuming that condition 'min_ptr!=NULL' is not redundant mpc-0.35/src/command.c:457:27: note: Assignment to 'min_ptr=strrchr(arg,':')' mpc-0.35/src/command.c:450:18: note: sec_ptr is assigned 'strrchr(arg,':')' here. mpc-0.35/src/command.c:453:5: note: Null pointer dereference mpc-0.35/src/command.c:457:28: warning: Either the condition 'arg!=NULL' is redundant or there is possible null pointer dereference: arg. [nullPointerRedundantCheck] mpc-0.35/src/command.c:465:13: note: Assuming that condition 'arg!=NULL' is not redundant mpc-0.35/src/command.c:457:28: note: Null pointer dereference mpc-0.35/src/command.c:263:3: warning: Either the condition 'min_ptr!=NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] mpc-0.35/src/command.c:267:15: note: Assuming that condition 'min_ptr!=NULL' is not redundant mpc-0.35/src/command.c:266:26: note: Assignment to 'min_ptr=strrchr(arg,':')' mpc-0.35/src/command.c:259:17: note: sec_ptr is assigned 'strrchr(arg,':')' here. mpc-0.35/src/command.c:263:3: note: Null pointer addition mpc-0.35/src/command.c:454:4: warning: Either the condition 'min_ptr!=NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] mpc-0.35/src/command.c:458:16: note: Assuming that condition 'min_ptr!=NULL' is not redundant mpc-0.35/src/command.c:457:27: note: Assignment to 'min_ptr=strrchr(arg,':')' mpc-0.35/src/command.c:450:18: note: sec_ptr is assigned 'strrchr(arg,':')' here. mpc-0.35/src/command.c:454:4: note: Null pointer addition mpc-0.35/src/command.c:1253:62: style:inconclusive: Function 'cmd_replaygain' argument 3 names different: declaration 'conn' definition 'connection'. [funcArgNamesDifferent] mpc-0.35/src/command.h:55:62: note: Function 'cmd_replaygain' argument 3 names different: declaration 'conn' definition 'connection'. mpc-0.35/src/command.c:1253:62: note: Function 'cmd_replaygain' argument 3 names different: declaration 'conn' definition 'connection'. mpc-0.35/src/command.c:275:11: style: Variable 'hr_ptr' can be declared as pointer to const [constVariablePointer] mpc-0.35/src/command.c:466:12: style: Variable 'hr_ptr' can be declared as pointer to const [constVariablePointer] mpc-0.35/src/command.c:1242:23: style: Variable 'status' can be declared as pointer to const [constVariablePointer] mpc-0.35/src/command.c:1243:10: style: Variable 'current_status' can be declared as pointer to const [constVariablePointer] mpc-0.35/src/group.c:16:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/group.c:10:47: style:inconclusive: Function 'mpc_groups_collect' argument 2 names different: declaration 'argc' definition 'argc_p'. [funcArgNamesDifferent] mpc-0.35/src/group.h:35:47: note: Function 'mpc_groups_collect' argument 2 names different: declaration 'argc' definition 'argc_p'. mpc-0.35/src/group.c:10:47: note: Function 'mpc_groups_collect' argument 2 names different: declaration 'argc' definition 'argc_p'. mpc-0.35/src/idle.c:20:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/idle.c:53:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mpc-0.35/src/main.c:139:18: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] mpc-0.35/src/message.c:48:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_IDLE_MESSAGE [valueFlowBailoutIncompleteVar] mpc-0.35/src/message.c:71:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_IDLE_MESSAGE [valueFlowBailoutIncompleteVar] mpc-0.35/src/mount.c:45:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/options.c:120:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/options.c:176:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/options.c:323:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/options.c:312:10: warning: If memory allocation fails, then there is a possible null pointer dereference: password [nullPointerOutOfMemory] mpc-0.35/src/options.c:310:26: note: Assuming allocation function fails mpc-0.35/src/options.c:310:26: note: Assignment 'password=malloc(password_length+1)', assigned value is 0 mpc-0.35/src/options.c:312:10: note: Null pointer dereference mpc-0.35/src/options.c:313:3: warning: If memory allocation fails, then there is a possible null pointer dereference: password [nullPointerOutOfMemory] mpc-0.35/src/options.c:310:26: note: Assuming allocation function fails mpc-0.35/src/options.c:310:26: note: Assignment 'password=malloc(password_length+1)', assigned value is 0 mpc-0.35/src/options.c:313:3: note: Null pointer dereference mpc-0.35/src/options.c:236:11: style: Variable 'value' can be declared as pointer to const [constVariablePointer] mpc-0.35/src/output.c:128:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/output.c:147:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/output.c:250:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/output.c:183:19: style: Variable 'id' can be declared as pointer to const [constVariablePointer] mpc-0.35/src/path.c:45:24: style: Condition 'path[base_length]==0' is always false [knownConditionTrueFalse] mpc-0.35/src/queue.c:48:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_ERROR_SERVER [valueFlowBailoutIncompleteVar] mpc-0.35/src/queue.c:79:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/queue.c:119:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_STATE_PLAY [valueFlowBailoutIncompleteVar] mpc-0.35/src/queue.c:268:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/queue.c:237:10: style: Condition 'ret!=0' is always false [knownConditionTrueFalse] mpc-0.35/src/queue.c:236:19: note: Calling function 'cmd_add' returns 0 mpc-0.35/src/queue.c:236:19: note: Assignment 'ret=cmd_add(argc,argv,conn)', assigned value is 0 mpc-0.35/src/queue.c:237:10: note: Condition 'ret!=0' is always false mpc-0.35/src/queue.c:108:9: warning: If memory allocation fails, then there is a possible null pointer dereference: songsToDel [nullPointerOutOfMemory] mpc-0.35/src/queue.c:107:27: note: Assuming allocation function fails mpc-0.35/src/queue.c:107:27: note: Assignment 'songsToDel=malloc(plLength)', assigned value is 0 mpc-0.35/src/queue.c:108:9: note: Null pointer dereference mpc-0.35/src/search.c:40:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_TAG_UNKNOWN [valueFlowBailoutIncompleteVar] mpc-0.35/src/search.c:70:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_TAG_UNKNOWN [valueFlowBailoutIncompleteVar] mpc-0.35/src/search.c:97:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_OPERATOR_DEFAULT [valueFlowBailoutIncompleteVar] mpc-0.35/src/search.c:112:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/search.c:146:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_ENTITY_TYPE_SONG [valueFlowBailoutIncompleteVar] mpc-0.35/src/search.c:112:3: style: Non-boolean value returned from function returning bool [returnNonBoolInBooleanFunction] mpc-0.35/src/song_format.c:85:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_TAG_UNKNOWN [valueFlowBailoutIncompleteVar] mpc-0.35/src/status.c:29:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_STATE_PLAY [valueFlowBailoutIncompleteVar] mpc-0.35/src/status_format.c:60:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_STATE_PLAY [valueFlowBailoutIncompleteVar] mpc-0.35/src/status_format.c:52:3: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mpc-0.35/src/sticker.c:53:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mpc-0.35/src/tab.c:99:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_ENTITY_TYPE_DIRECTORY [valueFlowBailoutIncompleteVar] mpc-0.35/src/tab.c:25:9: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] mpc-0.35/src/tab.c:24:18: note: Assuming allocation function fails mpc-0.35/src/tab.c:24:18: note: Assignment 'p=malloc(length+1)', assigned value is 0 mpc-0.35/src/tab.c:25:9: note: Null pointer dereference mpc-0.35/src/tab.c:26:2: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] mpc-0.35/src/tab.c:24:18: note: Assuming allocation function fails mpc-0.35/src/tab.c:24:18: note: Assignment 'p=malloc(length+1)', assigned value is 0 mpc-0.35/src/tab.c:26:2: note: Null pointer dereference mpc-0.35/src/util.c:20:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_ERROR_SUCCESS [valueFlowBailoutIncompleteVar] mpc-0.35/src/util.c:80:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_ENTITY_TYPE_UNKNOWN [valueFlowBailoutIncompleteVar] mpc-0.35/src/util.c:122:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPD_ERROR_SUCCESS [valueFlowBailoutIncompleteVar] mpc-0.35/test/test_format.c:133:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_empty [valueFlowBailoutIncompleteVar] mpc-0.35/test/test_format.c:148:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CK_NORMAL [valueFlowBailoutIncompleteVar] mpc-0.35/test/test_format.c:48:32: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] mpc-0.35/test/test_format.c:66:50: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] mpc-0.35/test/test_format.c:103:53: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] mpc-0.35/test/test_format.c:34:13: error: va_list 'ap' was opened but not closed by va_end(). [va_end_missing] mpc-0.35/src/args.c:113:16: warning: Null pointer dereference: uri [ctunullpointer] mpc-0.35/src/command.c:587:21: note: Assuming allocation function fails mpc-0.35/src/command.c:587:21: note: Assignment 'tmp=strdup(listall)', assigned value is 0 mpc-0.35/src/command.c:588:23: note: Calling function strip_trailing_slash, 1st argument is null mpc-0.35/src/args.c:119:6: note: Calling function uri_has_scheme, 1st argument is null mpc-0.35/src/args.c:113:16: note: Dereferencing argument uri that is null diff: head mpc-0.35/src/args.c:50:49: style:inconclusive: Function 'stdinAndPreambleToArgArray' argument 2 names different: declaration '' definition 'preamble'. [funcArgNamesDifferentUnnamed] DONE