Skip to content

Commit cf92a16

Browse files
sfkhalidvaughnbetz
authored andcommitted
Changed the way constraint file was checked for being NULL to get rid of a warning
1 parent 06b5e4d commit cf92a16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpr/src/place/initial_placement.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ void initial_placement(std::string pad_loc_type, const char* constraints_file) {
446446
}
447447

448448
/*Check whether the constraint file is NULL, if it is not read in the block locations from the constraints file here*/
449-
if (constraints_file != "") {
449+
if (strlen(constraints_file) != 0) {
450450
read_user_block_loc(constraints_file);
451451
}
452452

0 commit comments

Comments
 (0)