Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
EDAF55
C-camera
Commits
f54ea81e
Commit
f54ea81e
authored
Aug 31, 2017
by
Sven Gestegård Robertz
Browse files
initialize buffers
parent
5a1b2d1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/motion_server.c
View file @
f54ea81e
...
...
@@ -149,7 +149,7 @@ static int parse_http_request(const char* buf, size_t sz)
*/
static
void
*
serve_client
(
void
*
ctxt
)
{
char
buf
[
1024
];
char
buf
[
1024
]
=
{
0
}
;
struct
client
*
client
=
ctxt
;
memset
(
client
->
sendBuff
,
'0'
,
sizeof
(
client
->
sendBuff
));
int
rres
=
read
(
client
->
connfd
,
buf
,
1024
);
...
...
@@ -317,7 +317,7 @@ static int try_accept_motion(struct global_state* state)
static
void
*
motion_task
(
void
*
ctxt
)
{
struct
global_state
*
state
=
ctxt
;
char
buf
[
1024
];
char
buf
[
1024
]
=
{
0
}
;
intptr_t
result
=
0
;
state
->
mfd
.
fd
=
state
->
motionfd
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment