mirror of
https://github.com/Motion-Project/motion.git
synced 2026-05-18 03:24:38 -04:00
Revise conf to pointer
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "motion.hpp"
|
||||
#include "conf.hpp"
|
||||
#include "util.hpp"
|
||||
#include "logger.hpp"
|
||||
#include "dbse.hpp" /*For dbse ID in format output */
|
||||
@@ -446,8 +447,8 @@ size_t mystrftime(const struct ctx_cam *cam, char *s, size_t max, const char *us
|
||||
break;
|
||||
|
||||
case '$': // thread name
|
||||
if (cam->conf.camera_name && cam->conf.camera_name[0])
|
||||
snprintf(tempstr, PATH_MAX, "%s", cam->conf.camera_name);
|
||||
if (cam->conf->camera_name && cam->conf->camera_name[0])
|
||||
snprintf(tempstr, PATH_MAX, "%s", cam->conf->camera_name);
|
||||
else
|
||||
++pos_userformat;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user