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; RouteNode *node;
char *pathPart; char *pathPart;
char *tmp; char *tmp;
HttpRouteFunc *exec; HttpRouteFunc *exec = NULL;
Array *matches; Array *matches;
size_t i; size_t i;
int retval; int retval;

View file

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

View file

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