2025-05-06 11:09 ftp://ftp.de.debian.org/debian/pool/main/m/mtink/mtink_1.0.16.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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: ca3f092 (2025-05-06 12:26:46 +0200) count: 300 297 elapsed-time: 6.2 5.7 head-timing-info: old-timing-info: head results: mtink-1.0.16/detect/askPrinter.c:48:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] mtink-1.0.16/chooser/mtinkc.c:242:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable printer [valueFlowBailoutIncompleteVar] mtink-1.0.16/chooser/mtinkc.c:391:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmString [valueFlowBailoutIncompleteVar] mtink-1.0.16/chooser/mtinkc.c:437:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xmFormWidgetClass [valueFlowBailoutIncompleteVar] mtink-1.0.16/chooser/mtinkc.c:647:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/access.c:79:19: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] mtink-1.0.16/mainSrc/access.c:81:22: portability: Non reentrant function 'getgrgid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrgid_r'. [prohibitedgetgrgidCalled] mtink-1.0.16/mainSrc/access.c:40:20: style: Variable 'pwd' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/access.c:41:20: style: Variable 'grp' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/detect/askPrinter.c:78:22: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: dev [nullPointerOutOfMemory] mtink-1.0.16/detect/askPrinter.c:76:29: note: Assuming allocation function fails mtink-1.0.16/detect/askPrinter.c:76:16: note: Assignment 'dev=(char*)calloc(length,1)', assigned value is 0 mtink-1.0.16/detect/askPrinter.c:78:22: note: Null pointer dereference mtink-1.0.16/chooser/mtinkc.c:202:22: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] mtink-1.0.16/chooser/mtinkc.c:548:15: style: Condition '*argv' is always true [knownConditionTrueFalse] mtink-1.0.16/chooser/mtinkc.c:396:7: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] mtink-1.0.16/chooser/mtinkc.c:391:29: note: Assuming allocation function fails mtink-1.0.16/chooser/mtinkc.c:391:12: note: Assignment 'table=(XmString*)calloc(sizeof(XmString),n+1)', assigned value is 0 mtink-1.0.16/chooser/mtinkc.c:396:7: note: Null pointer dereference mtink-1.0.16/chooser/mtinkc.c:411:4: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] mtink-1.0.16/chooser/mtinkc.c:391:29: note: Assuming allocation function fails mtink-1.0.16/chooser/mtinkc.c:391:12: note: Assignment 'table=(XmString*)calloc(sizeof(XmString),n+1)', assigned value is 0 mtink-1.0.16/chooser/mtinkc.c:404:28: note: Assuming condition is false mtink-1.0.16/chooser/mtinkc.c:411:4: note: Null pointer dereference mtink-1.0.16/chooser/mtinkc.c:632:11: warning: If memory allocation fails, then there is a possible null pointer dereference: mainResource [nullPointerOutOfMemory] mtink-1.0.16/chooser/mtinkc.c:631:32: note: Assuming allocation function fails mtink-1.0.16/chooser/mtinkc.c:631:19: note: Assignment 'mainResource=(char*)calloc(strlen(prgName)+3,1)', assigned value is 0 mtink-1.0.16/chooser/mtinkc.c:632:11: note: Null pointer dereference mtink-1.0.16/chooser/mtinkc.c:633:4: warning: If memory allocation fails, then there is a possible null pointer dereference: mainResource [nullPointerOutOfMemory] mtink-1.0.16/chooser/mtinkc.c:631:32: note: Assuming allocation function fails mtink-1.0.16/chooser/mtinkc.c:631:19: note: Assignment 'mainResource=(char*)calloc(strlen(prgName)+3,1)', assigned value is 0 mtink-1.0.16/chooser/mtinkc.c:633:4: note: Null pointer dereference mtink-1.0.16/chooser/mtinkc.c:633:30: warning: If memory allocation fails, then there is a possible null pointer dereference: mainResource [nullPointerOutOfMemory] mtink-1.0.16/chooser/mtinkc.c:631:32: note: Assuming allocation function fails mtink-1.0.16/chooser/mtinkc.c:631:19: note: Assignment 'mainResource=(char*)calloc(strlen(prgName)+3,1)', assigned value is 0 mtink-1.0.16/chooser/mtinkc.c:633:30: note: Null pointer dereference mtink-1.0.16/chooser/mtinkc.c:148:13: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/chooser/mtinkc.c:149:13: style: Variable 'p2' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/chooser/mtinkc.c:191:19: style: Variable 'search' can be declared as const array [constVariable] mtink-1.0.16/chooser/mtinkc.c:194:19: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/chooser/mtinkc.c:335:35: style: Parameter 'resource' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/chooser/mtinkc.c:389:10: style: Variable 'new' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/chooser/mtinkc.c:574:18: style: Variable 'lang' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/chooser/mtinkc.c:605:24: error: Uninitialized variable: tmpBuf [legacyUninitvar] mtink-1.0.16/mainSrc/alignbt.c:103:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmNmarginWidth [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/alignbt.c:272:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmNbackground [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/alignbt.c:326:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmNlabelString [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/align.c:80:40: warning: Logical disjunction always evaluates to true: *s != '#' || *s != '['. [incorrectLogicOperator] mtink-1.0.16/mainSrc/align.c:4:47: style: Parameter 's' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/align.c:114:25: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/alignbt.c:91:20: style: Variable 'xms' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/bldpcode.c:103:17: error: va_list 'args' was opened but not closed by va_end(). [va_end_missing] mtink-1.0.16/mainSrc/bldpcode.c:128:17: error: va_list 'args' was opened but not closed by va_end(). [va_end_missing] mtink-1.0.16/mainSrc/bldpcode.c:159:17: error: va_list 'args' was opened but not closed by va_end(). [va_end_missing] mtink-1.0.16/mainSrc/bldpcode.c:179:17: error: va_list 'args' was opened but not closed by va_end(). [va_end_missing] mtink-1.0.16/mainSrc/bldpcode.c:202:17: error: va_list 'args' was opened but not closed by va_end(). [va_end_missing] mtink-1.0.16/mainSrc/cfg1.c:166:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmNmarginWidth [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/cfg1.c:357:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmString [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/cfg2.c:107:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmNmarginWidth [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/cfg2.c:341:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ok [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/cfg2.c:411:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ok [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/cfg2.c:464:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mainForm [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/cfg2.c:483:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable browser [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/cfg2.c:546:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable doCyclicScan [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/cfg1.c:312:22: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] mtink-1.0.16/mainSrc/cfg1.c:393:10: warning: If memory allocation fails, then there is a possible null pointer dereference: tbl [nullPointerOutOfMemory] mtink-1.0.16/mainSrc/cfg1.c:388:19: note: Assuming allocation function fails mtink-1.0.16/mainSrc/cfg1.c:388:19: note: Assignment 'tbl=calloc(sizeof(XmString),count)', assigned value is 0 mtink-1.0.16/mainSrc/cfg1.c:393:10: note: Null pointer dereference mtink-1.0.16/mainSrc/checkenv.c:235:16: warning: Either the condition 'm!=NULL' is redundant or there is possible null pointer dereference: m. [nullPointerRedundantCheck] mtink-1.0.16/mainSrc/checkenv.c:227:11: note: Assuming that condition 'm!=NULL' is not redundant mtink-1.0.16/mainSrc/checkenv.c:235:16: note: Null pointer dereference mtink-1.0.16/mainSrc/cfg1.c:296:8: style: Local variable 'count' shadows outer variable [shadowVariable] mtink-1.0.16/mainSrc/cfg1.c:76:20: note: Shadowed declaration mtink-1.0.16/mainSrc/cfg1.c:296:8: note: Shadow variable mtink-1.0.16/mainSrc/cfg1.c:298:19: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/cfg1.c:342:64: style: Parameter 'pData' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/checkenv.c:62:10: style: Variable 's' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/checkenv.c:142:10: style: Variable 'p' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/checkenv.c:183:10: style: Variable 'n' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/checkenv.c:184:10: style: Variable 'm' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/cfg2.c:370:15: style: Condition 'retBuf' is always true [knownConditionTrueFalse] mtink-1.0.16/mainSrc/cfg2.c:331:19: style: Local variable 'loop' shadows outer variable [shadowVariable] mtink-1.0.16/mainSrc/cfg2.c:80:12: note: Shadowed declaration mtink-1.0.16/mainSrc/cfg2.c:331:19: note: Shadow variable mtink-1.0.16/mainSrc/cfg2.c:402:8: style: Local variable 'loop' shadows outer variable [shadowVariable] mtink-1.0.16/mainSrc/cfg2.c:80:12: note: Shadowed declaration mtink-1.0.16/mainSrc/cfg2.c:402:8: note: Shadow variable mtink-1.0.16/mainSrc/cfg2.c:464:8: style: Variable 'fsb' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/fsb.c:91:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmSTRING_DEFAULT_CHARSET [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/fsb.c:141:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmDIALOG_HELP_BUTTON [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/d4lib.c:181:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/d4lib.c:212:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/d4lib.c:237:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/d4lib.c:297:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/d4lib.c:366:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/d4lib.c:454:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/d4lib.c:516:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/d4lib.c:888:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/d4lib.c:937:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/gimp-mtink.c:98:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GIMP_PDB_INT32 [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/gimp-mtink.c:169:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/gimp-mtink.c:126:22: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] mtink-1.0.16/mainSrc/gimp-mtink.c:121:19: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/gimp-mtink.c:166:10: style: Variable 'command' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/micon.c:226:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IsUnmapped [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/micon.c:254:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UnmapNotify [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/micon.c:276:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UnmapNotify [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/micon.c:303:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GCFunction [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/micon.c:335:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ButtonPress [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/micon.c:252:57: style: Parameter 'ev' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/micon.c:274:58: style: Parameter 'ev' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/micon.c:487:61: style: Parameter 'mainResource' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/micon.c:487:81: style: Parameter 'lang' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/micon.c:640:27: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/micon.c:671:21: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/micon.c:671:29: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/d4lib.c:293:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] mtink-1.0.16/mainSrc/d4lib.c:308:10: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] mtink-1.0.16/mainSrc/d4lib.c:359:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] mtink-1.0.16/mainSrc/d4lib.c:884:10: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] mtink-1.0.16/mainSrc/d4lib.c:980:16: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] mtink-1.0.16/mainSrc/d4lib.c:1043:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] mtink-1.0.16/mainSrc/d4lib.c:482:26: warning: Either the condition 'rd>0' is redundant or memcpy() argument nr 3 can have invalid value. The value is -5 but the valid values are '0:'. [invalidFunctionArg] mtink-1.0.16/mainSrc/d4lib.c:481:13: note: Assuming that condition 'rd>0' is not redundant mtink-1.0.16/mainSrc/d4lib.c:480:10: note: total is assigned 'rd-6' here. mtink-1.0.16/mainSrc/d4lib.c:482:26: note: Invalid argument mtink-1.0.16/mainSrc/d4lib.c:948:10: error: Common realloc mistake: 'buffer' nulled but not freed upon failure [memleakOnRealloc] mtink-1.0.16/mainSrc/d4lib.c:876:44: style:inconclusive: Function 'askForCredit' argument 3 names different: declaration 'sndSz' definition 'sndSize'. [funcArgNamesDifferent] mtink-1.0.16/mainSrc/d4lib.h:39:51: note: Function 'askForCredit' argument 3 names different: declaration 'sndSz' definition 'sndSize'. mtink-1.0.16/mainSrc/d4lib.c:876:44: note: Function 'askForCredit' argument 3 names different: declaration 'sndSz' definition 'sndSize'. mtink-1.0.16/mainSrc/d4lib.c:876:58: style:inconclusive: Function 'askForCredit' argument 4 names different: declaration 'rcvSz' definition 'rcvSize'. [funcArgNamesDifferent] mtink-1.0.16/mainSrc/d4lib.h:39:63: note: Function 'askForCredit' argument 4 names different: declaration 'rcvSz' definition 'rcvSize'. mtink-1.0.16/mainSrc/d4lib.c:876:58: note: Function 'askForCredit' argument 4 names different: declaration 'rcvSz' definition 'rcvSize'. mtink-1.0.16/mainSrc/d4lib.c:178:27: style: Parameter 'dir' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/d4lib.c:178:36: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/d4lib.c:231:30: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/d4lib.c:654:31: style: Parameter 'serviceName' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/d4lib.c:922:40: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/d4lib.c:103:7: style: struct member 'replyHeader_s::psid' is never used. [unusedStructMember] mtink-1.0.16/mainSrc/d4lib.c:104:7: style: struct member 'replyHeader_s::ssid' is never used. [unusedStructMember] mtink-1.0.16/mainSrc/d4lib.c:105:7: style: struct member 'replyHeader_s::lengthH' is never used. [unusedStructMember] mtink-1.0.16/mainSrc/d4lib.c:106:7: style: struct member 'replyHeader_s::lengthL' is never used. [unusedStructMember] mtink-1.0.16/mainSrc/d4lib.c:107:7: style: struct member 'replyHeader_s::credit' is never used. [unusedStructMember] mtink-1.0.16/mainSrc/d4lib.c:108:7: style: struct member 'replyHeader_s::control' is never used. [unusedStructMember] mtink-1.0.16/mainSrc/d4lib.c:109:7: style: struct member 'replyHeader_s::command' is never used. [unusedStructMember] mtink-1.0.16/mainSrc/d4lib.c:110:7: style: struct member 'replyHeader_s::result' is never used. [unusedStructMember] mtink-1.0.16/mainSrc/d4lib.c:121:18: style: struct member 'initReply_s::head' is never used. [unusedStructMember] mtink-1.0.16/mainSrc/d4lib.c:122:18: style: struct member 'initReply_s::revision' is never used. [unusedStructMember] mtink-1.0.16/mainSrc/d4lib.c:127:18: style: struct member 'error_s::head' is never used. [unusedStructMember] mtink-1.0.16/mainSrc/d4lib.c:128:18: style: struct member 'error_s::epsid' is never used. [unusedStructMember] mtink-1.0.16/mainSrc/d4lib.c:129:18: style: struct member 'error_s::essid' is never used. [unusedStructMember] mtink-1.0.16/mainSrc/d4lib.c:130:18: style: struct member 'error_s::ecode' is never used. [unusedStructMember] mtink-1.0.16/mainSrc/d4lib.c:353:14: style: Variable 'rd' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/cmd.c:198:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/cmd.c:227:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/cmd.c:263:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/cmd.c:420:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/cmd.c:523:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/cmd.c:1231:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/cmd.c:1363:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/cmd.c:2796:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/rcfile.c:52:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/rcfile.c:183:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable browser [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/mtink.c:355:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmNlabelString [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/mtink.c:599:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bt1 [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/mtink.c:755:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bt1 [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/mtink.c:1060:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmNsliderSize [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/mtink.c:1228:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/mtink.c:1925:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xmFormWidgetClass [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/mtink.c:2812:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmNvalue [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/mtink.c:2843:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmNlabelString [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/mtink.c:3039:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xmFormWidgetClass [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/rcfile.c:156:10: style: Variable 'homeDir' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/rdPrtDesc.c:199:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/rdPrtDesc.c:400:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/rdPrtDesc.c:624:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/rdPrtDesc.c:226:22: error: Common realloc mistake: 'configData' nulled but not freed upon failure [memleakOnRealloc] mtink-1.0.16/mainSrc/rdPrtDesc.c:395:13: error: Common realloc mistake: 'configData' nulled but not freed upon failure [memleakOnRealloc] mtink-1.0.16/mainSrc/rdPrtDesc.c:322:20: style: Parameter 's' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/rdPrtDesc.c:322:29: style: Parameter 't' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/rdPrtDesc.c:470:18: style: Variable 'a' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/rdPrtDesc.c:521:18: style: Variable 'a' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/rdPrtDesc.c:522:18: style: Variable 'ss' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/rdPrtDesc.c:523:18: style: Variable 'is' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/rdPrtDesc.c:610:18: style: Variable 'prgName' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/rdPrtDesc.c:609:23: style: Variable 'mode' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/rdPrtDesc.c:605:18: style: Unused variable: i [unusedVariable] mtink-1.0.16/mainSrc/rdPrtDesc.c:606:18: style: Unused variable: a [unusedVariable] mtink-1.0.16/mainSrc/rdPrtDesc.c:607:18: style: Unused variable: t [unusedVariable] mtink-1.0.16/mainSrc/rdPrtDesc.c:608:18: style: Unused variable: c [unusedVariable] mtink-1.0.16/mainSrc/rdPrtDesc.c:609:18: style: Variable 'mode' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/cmd.c:451:11: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] mtink-1.0.16/mainSrc/cmd.c:826:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] mtink-1.0.16/mainSrc/cmd.c:1270:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] mtink-1.0.16/mainSrc/cmd.c:1282:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] mtink-1.0.16/mainSrc/cmd.c:1437:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] mtink-1.0.16/mainSrc/cmd.c:1823:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] mtink-1.0.16/mainSrc/cmd.c:1831:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] mtink-1.0.16/mainSrc/cmd.c:1870:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] mtink-1.0.16/mainSrc/cmd.c:1877:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] mtink-1.0.16/mainSrc/cmd.c:2690:13: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] mtink-1.0.16/mainSrc/cmd.c:2952:14: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] mtink-1.0.16/mainSrc/cmd.c:1877:14: error: Invalid usleep() argument nr 1. The value is 1000000 but the valid values are '0:999999'. [invalidFunctionArg] mtink-1.0.16/mainSrc/cmd.c:2832:30: style: Redundant condition: function. '!function || (function && *function!='/')' is equivalent to '!function || *function!='/'' [redundantCondition] mtink-1.0.16/mainSrc/cmd.c:332:13: warning: Either the condition 'shmem!=((void*)0)' is redundant or there is possible null pointer dereference: shmem. [nullPointerRedundantCheck] mtink-1.0.16/mainSrc/cmd.c:456:25: note: Assuming that condition 'shmem!=((void*)0)' is not redundant mtink-1.0.16/mainSrc/cmd.c:332:13: note: Null pointer dereference mtink-1.0.16/mainSrc/cmd.c:2755:17: style: Redundant initialization for 'oldRdTimeout'. The initialized value is overwritten before it is read. [redundantInitialization] mtink-1.0.16/mainSrc/cmd.c:2752:21: note: oldRdTimeout is initialized mtink-1.0.16/mainSrc/cmd.c:2755:17: note: oldRdTimeout is overwritten mtink-1.0.16/mainSrc/cmd.c:2756:17: style: Redundant initialization for 'oldWrTimeout'. The initialized value is overwritten before it is read. [redundantInitialization] mtink-1.0.16/mainSrc/cmd.c:2753:21: note: oldWrTimeout is initialized mtink-1.0.16/mainSrc/cmd.c:2756:17: note: oldWrTimeout is overwritten mtink-1.0.16/mainSrc/cmd.c:485:77: style:inconclusive: Function 'callPrg' argument 6 names different: declaration 'buf' definition 'retBuf'. [funcArgNamesDifferent] mtink-1.0.16/mainSrc/cmd.h:33:84: note: Function 'callPrg' argument 6 names different: declaration 'buf' definition 'retBuf'. mtink-1.0.16/mainSrc/cmd.c:485:77: note: Function 'callPrg' argument 6 names different: declaration 'buf' definition 'retBuf'. mtink-1.0.16/mainSrc/cmd.c:485:91: style: Parameter 'function' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/cmd.c:500:13: style: Variable 's' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/cmd.c:1204:36: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/cmd.c:1694:35: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/rdRes.c:459:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/rdRes.c:485:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/cmd.c:795:13: style: Variable 'answered' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/cmd.c:1597:11: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/cmd.c:1605:11: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/cmd.c:2008:14: style: Variable 'i' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/cmd.c:2409:14: style: Variable 'i' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/cmd.c:2467:24: style: Variable 'dataChannelOpen' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/cmd.c:2476:24: style: Variable 'dataChannelOpen' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/cmd.c:2483:14: style: Variable 'i' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/cmd.c:2533:14: style: Variable 'i' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/cmd.c:2577:14: style: Variable 'i' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/cmd.c:2697:12: style: Variable 'i' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/rw.c:97:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/rw.c:145:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/rw.c:141:41: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/scrtxt.c:96:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmNmarginWidth [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/scrtxt.c:291:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmNlabelString [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/rdRes.c:280:23: style: Redundant condition: The condition '*res' is redundant since '*res == ' '' is sufficient. [redundantCondition] mtink-1.0.16/mainSrc/rdRes.c:122:7: error: Common realloc mistake: 'resources' nulled but not freed upon failure [memleakOnRealloc] mtink-1.0.16/mainSrc/rdRes.c:221:10: error: Common realloc mistake: 'resources' nulled but not freed upon failure [memleakOnRealloc] mtink-1.0.16/mainSrc/rdRes.c:530:34: warning: If memory allocation fails, then there is a possible null pointer dereference: array [nullPointerOutOfMemory] mtink-1.0.16/mainSrc/rdRes.c:507:26: note: Assuming allocation function fails mtink-1.0.16/mainSrc/rdRes.c:507:12: note: Assignment 'array=(char**)calloc(no+1,sizeof(char*))', assigned value is 0 mtink-1.0.16/mainSrc/rdRes.c:530:34: note: Null pointer dereference mtink-1.0.16/mainSrc/rdRes.c:187:10: style: Variable 's' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/rdRes.c:270:52: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/rdRes.c:362:10: style: Variable 's' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/rdRes.c:411:22: style: Parameter 'fmt' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/rdRes.c:413:10: style: Variable 'msg' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/rdRes.c:429:34: style: Parameter 'fmt' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/rdRes.c:431:10: style: Variable 'msg' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/rdRes.c:454:10: style: Variable 'answers' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/rdRes.c:455:10: style: Variable 's' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/rdRes.c:506:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/rdRes.c:549:10: style: Variable 'homePath' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/rdRes.c:550:10: style: Variable 'path' can be declared as const array [constVariable] mtink-1.0.16/mainSrc/tooltip.c:144:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EnterWindowMask [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/tooltip.c:262:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmNchildren [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/tooltip.c:357:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EnterNotify [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/tooltip.c:563:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LeaveNotify [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/tooltip.c:216:17: style: Checking if unsigned expression 'xOffset' is less than zero. [unsignedLessThanZero] mtink-1.0.16/mainSrc/tooltip.c:234:17: style: Checking if unsigned expression 'yOffset' is less than zero. [unsignedLessThanZero] mtink-1.0.16/mainSrc/tooltip.c:387:23: style: Checking if unsigned expression 'xOffset' is less than zero. [unsignedLessThanZero] mtink-1.0.16/mainSrc/tooltip.c:393:23: style: Checking if unsigned expression 'yOffset' is less than zero. [unsignedLessThanZero] mtink-1.0.16/mainSrc/tooltip.c:125:29: style: Parameter 'lang' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/tooltip.c:318:59: style: Parameter 'id' can be declared as pointer to const. However it seems that 'unmapTooltip' is a callback function, if 'id' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mtink-1.0.16/mainSrc/tooltip.c:302:51: note: You might need to cast the function pointer here mtink-1.0.16/mainSrc/tooltip.c:318:59: note: Parameter 'id' can be declared as pointer to const mtink-1.0.16/mainSrc/tooltip.c:562:23: style: Variable 'cevent' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/tooltip.c:588:37: style: Parameter 'resource' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/mtink.c:653:23: warning: Either the condition 'idx==-1' is redundant or the array 'data[10]' is accessed at index -1, which is out of bounds. [negativeIndex] mtink-1.0.16/mainSrc/mtink.c:673:22: note: Assuming that condition 'idx==-1' is not redundant mtink-1.0.16/mainSrc/mtink.c:663:18: note: Assuming condition is false mtink-1.0.16/mainSrc/mtink.c:653:23: note: Negative array index mtink-1.0.16/mainSrc/mtink.c:683:13: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] mtink-1.0.16/mainSrc/wheelmouse.c:72:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ShiftMask [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/wheelmouse.c:130:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmNverticalScrollBar [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/wheelmouse.c:57:66: style: Parameter 'event' can be declared as pointer to const. However it seems that 'mouseScroll' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mtink-1.0.16/mainSrc/wheelmouse.c:137:26: note: You might need to cast the function pointer here mtink-1.0.16/mainSrc/wheelmouse.c:57:66: note: Parameter 'event' can be declared as pointer to const mtink-1.0.16/mainSrc/mtink.c:750:24: style: Condition 'colHead' is always false [knownConditionTrueFalse] mtink-1.0.16/mainSrc/mtink.c:745:24: note: Assignment 'colHead=0', assigned value is 0 mtink-1.0.16/mainSrc/mtink.c:750:24: note: Condition 'colHead' is always false mtink-1.0.16/mainSrc/mtink.c:2689:36: style: Condition 'colIdx<6' is always true [knownConditionTrueFalse] mtink-1.0.16/mainSrc/mtink.c:2688:19: note: Assignment 'colIdx=0', assigned value is 0 mtink-1.0.16/mainSrc/mtink.c:2689:36: note: Condition 'colIdx<6' is always true mtink-1.0.16/mainSrc/mtink.c:1276:11: warning: If memory allocation fails, then there is a possible null pointer dereference: mainResource [nullPointerOutOfMemory] mtink-1.0.16/mainSrc/mtink.c:1275:32: note: Assuming allocation function fails mtink-1.0.16/mainSrc/mtink.c:1275:19: note: Assignment 'mainResource=(char*)calloc(strlen("EpsonUtil")+3,1)', assigned value is 0 mtink-1.0.16/mainSrc/mtink.c:1276:11: note: Null pointer dereference mtink-1.0.16/mainSrc/mtink.c:1306:14: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: displayStr [nullPointerOutOfMemory] mtink-1.0.16/mainSrc/mtink.c:1304:33: note: Assuming allocation function fails mtink-1.0.16/mainSrc/mtink.c:1304:20: note: Assignment 'displayStr=(char*)calloc(strlen(s)+10,1)', assigned value is 0 mtink-1.0.16/mainSrc/mtink.c:1306:14: note: Null pointer dereference mtink-1.0.16/mainSrc/mtink.c:2936:33: warning: If memory allocation fails, then there is a possible null pointer dereference: browser [nullPointerOutOfMemory] mtink-1.0.16/mainSrc/mtink.c:2907:23: note: Assuming allocation function fails mtink-1.0.16/mainSrc/mtink.c:2907:23: note: Assignment 'browser=strdup("netscape")', assigned value is 0 mtink-1.0.16/mainSrc/mtink.c:2936:33: note: Null pointer dereference mtink-1.0.16/mainSrc/mtink.c:2100:8: style: Variable 'wid' is reassigned a value before the old one has been used. [redundantAssignment] mtink-1.0.16/mainSrc/mtink.c:2006:8: note: wid is assigned mtink-1.0.16/mainSrc/mtink.c:2100:8: note: wid is overwritten mtink-1.0.16/mainSrc/mtink.c:2147:8: style: Variable 'wid' is reassigned a value before the old one has been used. [redundantAssignment] mtink-1.0.16/mainSrc/mtink.c:2100:8: note: wid is assigned mtink-1.0.16/mainSrc/mtink.c:2147:8: note: wid is overwritten mtink-1.0.16/mainSrc/mtink.c:2171:8: style: Variable 'wid' is reassigned a value before the old one has been used. [redundantAssignment] mtink-1.0.16/mainSrc/mtink.c:2147:8: note: wid is assigned mtink-1.0.16/mainSrc/mtink.c:2171:8: note: wid is overwritten mtink-1.0.16/mainSrc/mtink.c:2197:8: style: Variable 'wid' is reassigned a value before the old one has been used. [redundantAssignment] mtink-1.0.16/mainSrc/mtink.c:2171:8: note: wid is assigned mtink-1.0.16/mainSrc/mtink.c:2197:8: note: wid is overwritten mtink-1.0.16/mainSrc/mtink.c:455:8: style: Local variable 'x' shadows outer variable [shadowVariable] mtink-1.0.16/mainSrc/mtink.c:171:15: note: Shadowed declaration mtink-1.0.16/mainSrc/mtink.c:455:8: note: Shadow variable mtink-1.0.16/mainSrc/mtink.c:455:11: style: Local variable 'y' shadows outer variable [shadowVariable] mtink-1.0.16/mainSrc/mtink.c:171:17: note: Shadowed declaration mtink-1.0.16/mainSrc/mtink.c:455:11: note: Shadow variable mtink-1.0.16/mainSrc/mtink.c:340:10: style: Variable 'oldState' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/mtink.c:457:10: style: Variable 'home' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/mtink.c:503:10: style: Variable 'home' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/mtink.c:1205:18: style: Variable 'lang' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/mtink.c:2459:28: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/mtink.c:2855:31: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/mtink.c:2861:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/mtink.c:2965:11: style: Variable 'myCastel' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/mtink.c:370:12: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/mtink.c:1677:18: style: Variable 'prot' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/mtink.c:1693:18: style: Variable 'prot' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/mtink.c:2739:12: style: Variable 't' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/server/mtinkd.c:157:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/server/mtinkd.c:227:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable shmem_t [valueFlowBailoutIncompleteVar] mtink-1.0.16/server/mtinkd.c:295:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable shmem_t [valueFlowBailoutIncompleteVar] mtink-1.0.16/server/mtinkd.c:336:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/server/mtinkd.c:380:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/server/mtinkd.c:425:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/server/mtinkd.c:513:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] mtink-1.0.16/server/mtinkd.c:599:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/server/mtinkd.c:789:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mtink-1.0.16/utils/bldRes.c:199:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mtink-1.0.16/utils/bldRes.c:73:7: style: Variable 's' is assigned an expression that holds the same value. [redundantAssignment] mtink-1.0.16/utils/bldRes.c:71:9: note: s is assigned 'buf' here. mtink-1.0.16/utils/bldRes.c:73:7: note: Variable 's' is assigned an expression that holds the same value. mtink-1.0.16/server/mtinkd.c:1210:17: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] mtink-1.0.16/server/mtinkd.c:1449:13: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] mtink-1.0.16/server/mtinkd.c:1210:24: error: Invalid usleep() argument nr 1. The value is 1000000 but the valid values are '0:999999'. [invalidFunctionArg] mtink-1.0.16/server/mtinkd.c:1449:20: error: Invalid usleep() argument nr 1. The value is 10000000 but the valid values are '0:999999'. [invalidFunctionArg] mtink-1.0.16/server/mtinkd.c:257:22: error: Resource leak: fp [resourceLeak] mtink-1.0.16/server/mtinkd.c:1095:7: style: Redundant initialization for 'in'. The initialized value is overwritten before it is read. [redundantInitialization] mtink-1.0.16/server/mtinkd.c:789:23: note: in is initialized mtink-1.0.16/server/mtinkd.c:1095:7: note: in is overwritten mtink-1.0.16/server/mtinkd.c:213:20: style: Local variable 'shmid' shadows outer variable [shadowVariable] mtink-1.0.16/server/mtinkd.c:64:17: note: Shadowed declaration mtink-1.0.16/server/mtinkd.c:213:20: note: Shadow variable mtink-1.0.16/server/mtinkd.c:284:20: style: Local variable 'shmid' shadows outer variable [shadowVariable] mtink-1.0.16/server/mtinkd.c:64:17: note: Shadowed declaration mtink-1.0.16/server/mtinkd.c:284:20: note: Shadow variable mtink-1.0.16/server/mtinkd.c:112:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/server/mtinkd.c:146:24: style: Parameter 'fifo' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/server/mtinkd.c:148:20: style: Variable 's' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/server/mtinkd.c:558:20: style: Parameter 'id' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/server/mtinkd.c:558:30: style: Parameter 't' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/server/mtinkd.c:1018:34: error: Uninitialized variable: sBuf [uninitvar] mtink-1.0.16/server/mtinkd.c:331:12: style: Variable 't' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/server/mtinkd.c:800:33: style: Variable 'printerFound' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/server/mtinkd.c:1458:23: style: Variable 'printerFound' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/ttink.c:168:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/ttink.c:493:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/ttink.c:1269:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/ttink.c:1343:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mtink-1.0.16/mainSrc/ttink.c:736:23: style: Condition '*retBuf=='\0'' is always false [knownConditionTrueFalse] mtink-1.0.16/mainSrc/ttink.c:438:16: warning: If memory allocation fails, then there is a possible null pointer dereference: lang [nullPointerOutOfMemory] mtink-1.0.16/mainSrc/ttink.c:431:34: note: Assuming allocation function fails mtink-1.0.16/mainSrc/ttink.c:431:20: note: Assignment 'lang=(char*)strdup("en")', assigned value is 0 mtink-1.0.16/mainSrc/ttink.c:438:16: note: Null pointer dereference mtink-1.0.16/mainSrc/ttink.c:1286:11: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] mtink-1.0.16/mainSrc/ttink.c:1277:14: note: ret is assigned mtink-1.0.16/mainSrc/ttink.c:1286:11: note: ret is overwritten mtink-1.0.16/mainSrc/ttink.c:1422:8: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] mtink-1.0.16/mainSrc/ttink.c:1401:8: note: ret is assigned mtink-1.0.16/mainSrc/ttink.c:1422:8: note: ret is overwritten mtink-1.0.16/mainSrc/ttink.c:1425:8: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] mtink-1.0.16/mainSrc/ttink.c:1422:8: note: ret is assigned mtink-1.0.16/mainSrc/ttink.c:1425:8: note: ret is overwritten mtink-1.0.16/mainSrc/ttink.c:194:10: style: Variable 's' can be declared as pointer to const [constVariablePointer] mtink-1.0.16/mainSrc/ttink.c:820:28: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/ttink.c:851:30: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/ttink.c:1123:31: style: Parameter 'alias' can be declared as pointer to const [constParameterPointer] mtink-1.0.16/mainSrc/ttink.c:788:14: style: Variable 'retVal' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/ttink.c:1088:12: style: Variable 't' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/ttink.c:1232:16: style: Variable 'prot' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/ttink.c:1240:16: style: Variable 'prot' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/ttink.c:1286:11: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/ttink.c:1311:11: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/ttink.c:1319:11: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/ttink.c:1413:11: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] mtink-1.0.16/mainSrc/ttink.c:1425:8: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] diff: head mtink-1.0.16/chooser/mtinkc.c:633:30: warning: If memory allocation fails, then there is a possible null pointer dereference: mainResource [nullPointerOutOfMemory] mtink-1.0.16/chooser/mtinkc.c:631:32: note: Assuming allocation function fails mtink-1.0.16/chooser/mtinkc.c:631:19: note: Assignment 'mainResource=(char*)calloc(strlen(prgName)+3,1)', assigned value is 0 mtink-1.0.16/chooser/mtinkc.c:633:30: note: Null pointer dereference head mtink-1.0.16/mainSrc/rdPrtDesc.c:609:18: style: Variable 'mode' is assigned a value that is never used. [unreadVariable] head mtink-1.0.16/server/mtinkd.c:1018:34: error: Uninitialized variable: sBuf [uninitvar] DONE