Lines 360-365
int main(int argc, char **argv)
Link Here
|
360 |
switch(msg.id) { |
360 |
switch(msg.id) { |
361 |
case CAMEL_LOCK_HELPER_LOCK: |
361 |
case CAMEL_LOCK_HELPER_LOCK: |
362 |
res = CAMEL_LOCK_HELPER_STATUS_NOMEM; |
362 |
res = CAMEL_LOCK_HELPER_STATUS_NOMEM; |
|
|
363 |
if (msg.data+1 < msg.data) |
364 |
break; |
363 |
path = malloc(msg.data+1); |
365 |
path = malloc(msg.data+1); |
364 |
if (path != NULL) { |
366 |
if (path != NULL) { |
365 |
res = CAMEL_LOCK_HELPER_STATUS_PROTOCOL; |
367 |
res = CAMEL_LOCK_HELPER_STATUS_PROTOCOL; |