forked from Telodendria/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;
|
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;
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue