event.c: removed redundant sizeof()'s.
This commit is contained in:
parent
ed8891000f
commit
a6cec1ce34
1 changed files with 2 additions and 2 deletions
|
|
@ -77,7 +77,7 @@ void notify_event_set_path(notify_event *event, const char *path) {
|
||||||
if (event == NULL || path == NULL)
|
if (event == NULL || path == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ptr = realloc(event->path, sizeof(char) * (strlen(path)+1));
|
ptr = realloc(event->path, strlen(path)+1);
|
||||||
|
|
||||||
if (ptr == NULL)
|
if (ptr == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
@ -98,7 +98,7 @@ void notify_event_set_filename(notify_event *event, const char *filename) {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
||||||
tmp = realloc(event->filename, sizeof(char) * (strlen(filename)+1));
|
tmp = realloc(event->filename, strlen(filename)+1);
|
||||||
|
|
||||||
if (tmp == NULL)
|
if (tmp == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Reference in a new issue