mozeq / test

testing repo for playing with the github API
0 stars 0 forks source link

Possible null pointer dereference: argv1 - otherwise it is redundant to check if argv1 is null #403

Closed mozeq closed 11 years ago

mozeq commented 11 years ago

Opened '20110726T10:37:39' by mnowak as https://fedorahosted.org/abrt/ticket/324

cppcheck found this possible issue:

$ cppcheck -q scm/abrt/ -I scm/abrt/src/include/ -I scm/abrt/src/lib/

[scm/abrt/src/daemon/abrt-action-save-package-data.c:163]: (error) Possible null pointer dereference: argv1 - otherwise it is redundant to check if argv1 is null at line 146

mozeq commented 11 years ago

Added '20110726T14:53:23' by 'mmilata'

This can be triggered for example by running 'python' without arguments and then killing it with SEGV. Patch sent to mailing list for review.