forked from lda/telodendria
Fix up a few small warnings.
This commit is contained in:
parent
687b89a83a
commit
4a5c7480aa
3 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -75,6 +75,7 @@ ROUTE_IMPL(RouteProcControl, path, argp)
|
|||
response = MatrixErrorCreate(M_UNRECOGNIZED);
|
||||
goto finish;
|
||||
}
|
||||
break;
|
||||
case HTTP_GET:
|
||||
if (strcmp(op, "stats") == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue