projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdf35f2
)
indent
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 23 May 2008 12:37:52 +0000
(12:37 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 23 May 2008 12:37:52 +0000
(12:37 +0000)
Originally committed as revision 13251 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/mem.c
patch
|
blob
|
history
diff --git
a/libavutil/mem.c
b/libavutil/mem.c
index
3eaa366
..
960074c
100644
(file)
--- a/
libavutil/mem.c
+++ b/
libavutil/mem.c
@@
-141,10
+141,10
@@
char *av_strdup(const char *s)
{
char *ptr= NULL;
if(s){
- int len = strlen(s) + 1;
- ptr = av_malloc(len);
- if (ptr)
- memcpy(ptr, s, len);
+
int len = strlen(s) + 1;
+
ptr = av_malloc(len);
+
if (ptr)
+
memcpy(ptr, s, len);
}
return ptr;
}