[BACK]Return to magic-load.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / file

Diff for /src/usr.bin/file/magic-load.c between version 1.3 and 1.4

version 1.3, 2015/04/25 18:44:28 version 1.4, 2015/04/25 21:17:09
Line 922 
Line 922 
                 cp++;                  cp++;
         }          }
         if (*mimetype == '\0' || *cp != '\0') {          if (*mimetype == '\0' || *cp != '\0') {
                 fprintf(stderr, "%s:%u: invalid MIME type: %s\n", m->path, at,                  if (m->warnings) {
                     mimetype);                          fprintf(stderr, "%s:%u: invalid MIME type: %s\n",
                               m->path, at, mimetype);
                   }
                 return;                  return;
         }          }
         if (ml == NULL) {          if (ml == NULL) {
                 fprintf(stderr, "%s:%u: stray MIME type: %s\n", m->path, at,                  if (m->warnings) {
                     mimetype);                          fprintf(stderr, "%s:%u: stray MIME type: %s\n",
                               m->path, at, mimetype);
                   }
                 return;                  return;
         }          }
         ml->mimetype = xstrdup(mimetype);          ml->mimetype = xstrdup(mimetype);

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4