Navigation Menu

Skip to content

Commit

Permalink
Changes variable scope about db_len
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhys committed Jun 28, 2012
1 parent 4cca9e5 commit b9d5120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mrn_path_mapper.cpp
Expand Up @@ -48,9 +48,9 @@ namespace mrn {
return db_path_;
}

size_t db_len = strlen(db_path_);
if (strncmp(mysql_path_, "./", 2) == 0) {
if (path_prefix_) {
size_t db_len = strlen(db_path_);
strncat(db_path_, path_prefix_, MRN_MAX_PATH_SIZE - db_len - 1);
}

Expand Down

0 comments on commit b9d5120

Please sign in to comment.