Skip to content

Commit

Permalink
Use MS_FALSE and MS_TRUE
Browse files Browse the repository at this point in the history
  • Loading branch information
geographika committed Feb 11, 2020
1 parent dd90bae commit f64d1ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mapmssql2008.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ static char *strstrIgnoreCase(const char *haystack, const char *needle)
char *hay_lower;
char *needle_lower;
size_t len_hay,len_need, match;
int found = -1;
int found = MS_FALSE;
int t;
char *loc;

Expand All @@ -715,13 +715,13 @@ static char *strstrIgnoreCase(const char *haystack, const char *needle)
loc = strstr(hay_lower, needle_lower);
if(loc) {
match = loc - hay_lower;
found = 1;
found = MS_TRUE;
}

msFree(hay_lower);
msFree(needle_lower);

return (char *) (found < 0 ? NULL : haystack + match);
return (char *) (found == MS_FALSE ? NULL : haystack + match);
}

static int msMSSQL2008LayerParseData(layerObj *layer, char **geom_column_name, char **geom_column_type, char **table_name, char **urid_name, char **user_srid, char **index_name, char **sort_spec, int debug);
Expand Down

0 comments on commit f64d1ab

Please sign in to comment.