]> git.llucax.com Git - z.facultad/75.06/emufs.git/blobdiff - tipo3/emufs.c
un change mas en la extension
[z.facultad/75.06/emufs.git] / tipo3 / emufs.c
index 0cdd43df30ce34591aaadcc5299b9132ca7a6cbc..4d7409706876cf9b249ad81d182ecb619c811058 100644 (file)
@@ -9,8 +9,9 @@
 
 char *str_dup(const char *s)
 {
+       char *tmp;
        if (s == NULL) return NULL;
-       char *tmp = (char *)malloc(sizeof(char)*(strlen(s)+1));
+       tmp = (char *)malloc(sizeof(char)*(strlen(s)+1));
        strcpy(tmp, s);
        return tmp;
 }