Skip to content

Commit

Permalink
Merge pull request #291 from lincuiping/fix-unnecessary_plus
Browse files Browse the repository at this point in the history
remove unnecessary plus operator
  • Loading branch information
Melkij committed Nov 16, 2021
2 parents 2493809 + 37d3dba commit e0ce383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/pgut/pgut.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ parse_time(const char *value, time_t *time)
char junk[2];

/* tmp = replace( value, !isalnum, ' ' ) */
tmp = pgut_malloc(strlen(value) + + 1);
tmp = pgut_malloc(strlen(value) + 1);
len = 0;
for (i = 0; value[i]; i++)
tmp[len++] = (IsAlnum(value[i]) ? value[i] : ' ');
Expand Down

0 comments on commit e0ce383

Please sign in to comment.