Fix up a few small warnings.

This commit is contained in:
Jordan Bancino 2023-04-20 13:49:25 +00:00
parent 687b89a83a
commit 4a5c7480aa
3 changed files with 6 additions and 2 deletions

View file

@ -195,7 +195,7 @@ HttpRouterRoute(HttpRouter * router, char *path, void *args, void **ret)
RouteNode *node;
char *pathPart;
char *tmp;
HttpRouteFunc *exec;
HttpRouteFunc *exec = NULL;
Array *matches;
size_t i;
int retval;

View file

@ -627,7 +627,10 @@ finish:
* Change back into starting directory so initial chdir()
* call works.
*/
chdir(startDir);
if (chdir(startDir) != 0)
{
/* TODO: Seems problematic, what do we do? */
}
goto start;
}

View file

@ -75,6 +75,7 @@ ROUTE_IMPL(RouteProcControl, path, argp)
response = MatrixErrorCreate(M_UNRECOGNIZED);
goto finish;
}
break;
case HTTP_GET:
if (strcmp(op, "stats") == 0)
{