Either the condition s2?atof(s2):0.0
is redundant or there is possible null pointer dereference: s2.
if (xxfloat(s2,0) == 2) {
Assignment of function parameter has no effect outside the function. Did you forget dereferencing it?
px = NULL;
Either the condition if(diallac)
is redundant or there is possible null pointer dereference: diallac.
if (*diallac == '/')
String literal compared with variable s
. Did you intend to use strcmp() instead?
if (s == "") s = NULL;
Either the condition if(diallcc)
is redundant or there is possible null pointer dereference: diallcc.
if (*diallcc == '+')
Either the condition s
is redundant or there is possible null pointer dereference: s.
len = strlen(s);
String literal compared with variable s
. Did you intend to use strcmp() instead?
if (s == "") s = NULL;
Either the condition if(diallac)
is redundant or there is possible null pointer dereference: diallac.
if (*diallac == '(')
BUG found
static struct keytab tnbugtab[] = {
XXX found
debug(F111,"XXX",p[1],x);
BUG found
case CK_TN_BUG:
Too many #ifdef configurations - cppcheck only checks 12 of 570 configurations. Use --force to check all configurations.
#endif
Uninitialized variable: x
if (x == -1) {
Condition x
is always true
if (x && y != PROTO_K) {
Condition tncomport
is always false
if (tncomport) {
The scope of the variable c
can be reduced.
char c;
The scope of the variable c
can be reduced.
char c;
The scope of the variable c
can be reduced.
char c, buf1[32], buf2[32], * info[32], * p, * s;
The scope of the variable x
can be reduced.
int i, x = 0, z, ftp = 0, active = 0;
The scope of the variable x
can be reduced.
int x, n, mdm;
The scope of the variable i
can be reduced.
int i, x = 0, z, ftp = 0, active = 0;
The scope of the variable zz
can be reduced.
long zz;
Local variable n shadows outer variable
int n = 32;
Unused variable: len
int rc, len;
The scope of the variable dirsep
can be reduced.
char dirsep[2];
The scope of the variable n
can be reduced.
int x, n, mdm;
Local variable i shadows outer variable
int i, xx;
Local variable i shadows outer variable
int i,len;
The scope of the variable s
can be reduced.
char c, buf1[32], buf2[32], * info[32], * p, * s;
The scope of the variable jd
can be reduced.
long sec, jd;
Label xsetprn
is not used.
xsetprn:
Local variable m shadows outer variable
int m;
Local variable p shadows outer variable
short *p;
Clarify calculation precedence for &
and ?
.
mdmspd = zz & CKD_SB ? 0 : 1;
Unused variable: y
int cx, x, y, z;
Local variable autolocus shadows outer variable
extern int locus, autolocus;
Local variable tmpbuf shadows outer variable
char *s, tmpbuf[XPCMDLEN+1];
Local variable zz shadows outer variable
long zz;
Unused variable: rc
int i, rc;
The scope of the variable c
can be reduced.
char c, * s;
The scope of the variable getval
can be reduced.
int getval = 0;
Unused variable: x
int cx, x, y, z;
Variable fpresult
is reassigned a value before the old one has been used.
fpresult = fpj;
Variable x
is reassigned a value before the old one has been used.
x = 1;
Local variable zz shadows outer variable
int zz;
Local variable tmpbuf shadows outer variable
char *s, tmpbuf[XPCMDLEN+1];
Variable x
is reassigned a value before the old one has been used.
x = 1;
Local variable p shadows outer variable
char *p;
Unused variable: rc
int rc, len;
Variable text
is assigned a value that is never used.
char * text=NULL;
Clarify calculation precedence for &
and ?
.
mdmspd = p->capas & CKD_SB ? 0 : 1;
Local variable x shadows outer variable
int x;
Unused variable: y
int cx, x, y, z;
Unused variable: z
int cx, x, y, z;
Unused variable: rc
int rc;
Variable x
is assigned a value that is never used.
int x = locus;
The scope of the variable y
can be reduced.
int y, z = 1;
Local variable pflag shadows outer variable
int pflag = 0;
Condition x
is always false
if (x && y != PROTO_K) {
Local variable line shadows outer variable
char * line = NULL;
Unused variable: s
char * s;
Variable s
is reassigned a value before the old one has been used.
s = line;
Local variable k shadows outer variable
int k;
Local variable m shadows outer variable
int m;
The scope of the variable c
can be reduced.
char c, * p = tmpbuf;
The scope of the variable i
can be reduced.
int i, xx;
Unused variable: s
char * s;
Local variable line shadows outer variable
char * line = NULL;
Local variable locus shadows outer variable
extern int locus, autolocus;
The scope of the variable getval
can be reduced.
int xmode = -1, fs = 0, getval = 0, simulate = 0, wild = 0;
Local variable p shadows outer variable
char *p = getenv("PATH");
Unused variable: x
int cx, x, y, z;
Variable s2
is reassigned a value before the old one has been used.
s2 = s;
Variable zz
is reassigned a value before the old one has been used.
zz = (long) x * 10L;
The scope of the variable zz
can be reduced.
int zz;
Local variable k shadows outer variable
int k, ifcsav = ifc;
The scope of the variable c
can be reduced.
int c, n;
Unused variable: z
int cx, x, y, z;
The function shossh
is never used.
shossh() {
The function uq_mtxt
is never used.
uq_mtxt(preface,help,n,field)
There are no issues that match your filters.