2025-07-01 13:33 ftp://ftp.de.debian.org/debian/pool/main/w/windowlab/windowlab_1.40.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 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: f4eb733 (2025-07-01 13:53:18 +0200) count: 75 67 elapsed-time: 0.6 0.6 head-timing-info: old-timing-info: head results: windowlab-1.40/client.c:59:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] windowlab-1.40/client.c:74:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WithdrawnState [valueFlowBailoutIncompleteVar] windowlab-1.40/client.c:93:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ConfigureNotify [valueFlowBailoutIncompleteVar] windowlab-1.40/client.c:131:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WithdrawnState [valueFlowBailoutIncompleteVar] windowlab-1.40/client.c:248:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PWinGravity [valueFlowBailoutIncompleteVar] windowlab-1.40/menufile.c:85:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEF_MENURC [valueFlowBailoutIncompleteVar] windowlab-1.40/misc.c:34:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] windowlab-1.40/misc.c:90:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] windowlab-1.40/misc.c:143:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ClientMessage [valueFlowBailoutIncompleteVar] windowlab-1.40/misc.c:231:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CWX [valueFlowBailoutIncompleteVar] windowlab-1.40/main.c:122:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IsViewable [valueFlowBailoutIncompleteVar] windowlab-1.40/main.c:205:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XC_fleur [valueFlowBailoutIncompleteVar] windowlab-1.40/events.c:139:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Mod1Mask [valueFlowBailoutIncompleteVar] windowlab-1.40/events.c:214:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ButtonPressMask [valueFlowBailoutIncompleteVar] windowlab-1.40/events.c:339:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CWX [valueFlowBailoutIncompleteVar] windowlab-1.40/events.c:481:92: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IconicState [valueFlowBailoutIncompleteVar] windowlab-1.40/events.c:563:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ButtonPressMask [valueFlowBailoutIncompleteVar] windowlab-1.40/events.c:651:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] windowlab-1.40/misc.c:247:22: style: Parameter 'sourcedims' can be declared as pointer to const [constParameterPointer] windowlab-1.40/main.c:197:3: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] windowlab-1.40/manage.c:59:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IconicState [valueFlowBailoutIncompleteVar] windowlab-1.40/manage.c:75:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NormalState [valueFlowBailoutIncompleteVar] windowlab-1.40/manage.c:120:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PMaxSize [valueFlowBailoutIncompleteVar] windowlab-1.40/manage.c:210:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ButtonPressMask [valueFlowBailoutIncompleteVar] windowlab-1.40/manage.c:273:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ButtonPressMask [valueFlowBailoutIncompleteVar] windowlab-1.40/manage.c:494:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PMinSize [valueFlowBailoutIncompleteVar] windowlab-1.40/manage.c:545:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PResizeInc [valueFlowBailoutIncompleteVar] windowlab-1.40/new.c:100:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IsViewable [valueFlowBailoutIncompleteVar] windowlab-1.40/new.c:219:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SubstructureRedirectMask [valueFlowBailoutIncompleteVar] windowlab-1.40/taskbar.c:39:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SubstructureRedirectMask [valueFlowBailoutIncompleteVar] windowlab-1.40/taskbar.c:127:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ButtonPressMask [valueFlowBailoutIncompleteVar] windowlab-1.40/taskbar.c:202:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ButtonPressMask [valueFlowBailoutIncompleteVar] windowlab-1.40/taskbar.c:240:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ButtonPressMask [valueFlowBailoutIncompleteVar] windowlab-1.40/new.c:60:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:60:2: note: Null pointer dereference windowlab-1.40/new.c:68:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:68:2: note: Null pointer dereference windowlab-1.40/new.c:69:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:69:2: note: Null pointer dereference windowlab-1.40/new.c:70:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:70:2: note: Null pointer dereference windowlab-1.40/new.c:71:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:71:2: note: Null pointer dereference windowlab-1.40/new.c:75:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:75:2: note: Null pointer dereference windowlab-1.40/new.c:76:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:76:2: note: Null pointer dereference windowlab-1.40/new.c:77:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:77:2: note: Null pointer dereference windowlab-1.40/new.c:78:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:78:2: note: Null pointer dereference windowlab-1.40/new.c:79:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:79:2: note: Null pointer dereference windowlab-1.40/new.c:80:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:80:2: note: Null pointer dereference windowlab-1.40/new.c:81:27: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:81:27: note: Null pointer dereference windowlab-1.40/new.c:81:38: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:81:38: note: Null pointer dereference windowlab-1.40/new.c:98:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:98:2: note: Null pointer dereference windowlab-1.40/new.c:220:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:116:11: note: Calling function 'reparent', 1st argument 'c' value is 0 windowlab-1.40/new.c:220:2: note: Null pointer dereference windowlab-1.40/new.c:220:40: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:116:11: note: Calling function 'reparent', 1st argument 'c' value is 0 windowlab-1.40/new.c:220:40: note: Null pointer dereference windowlab-1.40/new.c:220:46: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:116:11: note: Calling function 'reparent', 1st argument 'c' value is 0 windowlab-1.40/new.c:220:46: note: Null pointer dereference windowlab-1.40/new.c:220:66: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:116:11: note: Calling function 'reparent', 1st argument 'c' value is 0 windowlab-1.40/new.c:220:66: note: Null pointer dereference windowlab-1.40/new.c:220:76: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:116:11: note: Calling function 'reparent', 1st argument 'c' value is 0 windowlab-1.40/new.c:220:76: note: Null pointer dereference windowlab-1.40/new.c:230:23: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:116:11: note: Calling function 'reparent', 1st argument 'c' value is 0 windowlab-1.40/new.c:230:23: note: Null pointer dereference windowlab-1.40/new.c:231:22: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:116:11: note: Calling function 'reparent', 1st argument 'c' value is 0 windowlab-1.40/new.c:231:22: note: Null pointer dereference windowlab-1.40/new.c:232:31: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:116:11: note: Calling function 'reparent', 1st argument 'c' value is 0 windowlab-1.40/new.c:232:31: note: Null pointer dereference windowlab-1.40/new.c:233:23: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:116:11: note: Calling function 'reparent', 1st argument 'c' value is 0 windowlab-1.40/new.c:233:23: note: Null pointer dereference windowlab-1.40/new.c:233:34: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:116:11: note: Calling function 'reparent', 1st argument 'c' value is 0 windowlab-1.40/new.c:233:34: note: Null pointer dereference windowlab-1.40/new.c:233:44: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:116:11: note: Calling function 'reparent', 1st argument 'c' value is 0 windowlab-1.40/new.c:233:44: note: Null pointer dereference windowlab-1.40/new.c:234:25: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:116:11: note: Calling function 'reparent', 1st argument 'c' value is 0 windowlab-1.40/new.c:234:25: note: Null pointer dereference windowlab-1.40/new.c:234:36: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:116:11: note: Calling function 'reparent', 1st argument 'c' value is 0 windowlab-1.40/new.c:234:36: note: Null pointer dereference windowlab-1.40/menufile.c:157:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] windowlab-1.40/menufile.c:162:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] windowlab-1.40/menufile.c:60:4: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] windowlab-1.40/menufile.c:122:3: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] windowlab-1.40/menufile.c:144:21: style: Parameter 'menustr' can be declared as pointer to const [constParameterPointer] windowlab-1.40/menufile.c:148:8: style: Variable 'ptemp' can be declared as pointer to const [constVariablePointer] windowlab-1.40/events.c:203:50: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] windowlab-1.40/events.c:205:18: style: Variable 'first_click_c' can be declared as pointer to const [constVariablePointer] windowlab-1.40/events.c:284:41: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] windowlab-1.40/taskbar.c:402:10: style: Variable 'original_c' can be declared as pointer to const [constVariablePointer] windowlab-1.40/manage.c:339:22: style: Condition 'in_taskbar==1' is always true [knownConditionTrueFalse] windowlab-1.40/manage.c:330:32: note: Assignment 'in_taskbar=1', assigned value is 1 windowlab-1.40/manage.c:339:22: note: Condition 'in_taskbar==1' is always true windowlab-1.40/manage.c:330:19: style: Local variable 'in_taskbar' shadows outer variable [shadowVariable] windowlab-1.40/windowlab.h:241:21: note: Shadowed declaration windowlab-1.40/manage.c:330:19: note: Shadow variable windowlab-1.40/manage.c:542:83: style: Parameter 'newdims' can be declared as pointer to const [constParameterPointer] windowlab-1.40/manage.c:335:18: style: Variable 'in_taskbar' is assigned a value that is never used. [unreadVariable] windowlab-1.40/manage.c:347:19: style: Variable 'in_taskbar' is assigned a value that is never used. [unreadVariable] diff: head windowlab-1.40/new.c:220:40: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:116:11: note: Calling function 'reparent', 1st argument 'c' value is 0 windowlab-1.40/new.c:220:40: note: Null pointer dereference head windowlab-1.40/new.c:220:46: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:116:11: note: Calling function 'reparent', 1st argument 'c' value is 0 windowlab-1.40/new.c:220:46: note: Null pointer dereference head windowlab-1.40/new.c:220:66: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:116:11: note: Calling function 'reparent', 1st argument 'c' value is 0 windowlab-1.40/new.c:220:66: note: Null pointer dereference head windowlab-1.40/new.c:220:76: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:116:11: note: Calling function 'reparent', 1st argument 'c' value is 0 windowlab-1.40/new.c:220:76: note: Null pointer dereference head windowlab-1.40/new.c:233:34: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:116:11: note: Calling function 'reparent', 1st argument 'c' value is 0 windowlab-1.40/new.c:233:34: note: Null pointer dereference head windowlab-1.40/new.c:233:44: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:116:11: note: Calling function 'reparent', 1st argument 'c' value is 0 windowlab-1.40/new.c:233:44: note: Null pointer dereference head windowlab-1.40/new.c:234:36: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:116:11: note: Calling function 'reparent', 1st argument 'c' value is 0 windowlab-1.40/new.c:234:36: note: Null pointer dereference head windowlab-1.40/new.c:81:38: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] windowlab-1.40/new.c:46:22: note: Assuming allocation function fails windowlab-1.40/new.c:46:6: note: Assignment 'c=(struct Client*)malloc(sizeof(*c))', assigned value is 0 windowlab-1.40/new.c:81:38: note: Null pointer dereference DONE