Skip to content

Commit

Permalink
smaxWrite: cppcheck fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Jan 11, 2025
1 parent 4868780 commit 85b0bc9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/smaxWrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ int main(int argc, const char *argv[]) {

const char *id = NULL;
char **cmdargs, *table = NULL, *value = NULL;
int rc, i, n, status = X_SUCCESS;
int rc, n, status = X_SUCCESS;

poptContext optcon = poptGetContext(fn, argc, argv, options, 0);

Expand All @@ -91,6 +91,7 @@ int main(int argc, const char *argv[]) {

cmdargs = (char **) poptGetArgs(optcon);
if(cmdargs) {
int i;
for(i = 0; i < 2 && cmdargs[i]; i++) {
if(id) value = cmdargs[i];
else id = cmdargs[i];
Expand Down Expand Up @@ -135,7 +136,7 @@ int main(int argc, const char *argv[]) {
table = (char *) id;
}
else {
char *table = xStringCopyOf(id);
table = xStringCopyOf(id);

status = xSplitID(table, &f.name);
if(status) {
Expand Down

0 comments on commit 85b0bc9

Please sign in to comment.