]> granicus.if.org Git - file/commitdiff
remove useless assignment found by coverity
authorChristos Zoulas <christos@zoulas.com>
Wed, 1 Aug 2018 10:14:10 +0000 (10:14 +0000)
committerChristos Zoulas <christos@zoulas.com>
Wed, 1 Aug 2018 10:14:10 +0000 (10:14 +0000)
src/apprentice.c

index 05306e5d58165642136a9bed8d0cf286dca9bf44..4d411e66ab835646fe28e3086fb5e51d4219bcfb 100644 (file)
@@ -32,7 +32,7 @@
 #include "file.h"
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: apprentice.c,v 1.274 2018/08/01 10:12:59 christos Exp $")
+FILE_RCSID("@(#)$File: apprentice.c,v 1.275 2018/08/01 10:14:10 christos Exp $")
 #endif /* lint */
 
 #include "magic.h"
@@ -1868,7 +1868,7 @@ parse(struct magic_set *ms, struct magic_entry *me, const char *line,
                                file_oomem(ms, sizeof(*nm) * cnt);
                                return -1;
                        }
-                       me->mp = m = nm;
+                       me->mp = nm;
                        me->max_count = CAST(uint32_t, cnt);
                }
                m = &me->mp[me->cont_count++];