Browse Source

dpkg: Use line instead of desc to make use of the strtok() assignment

There's no actual behavior change with this, but it makes the code
clearer and squashes a warning.

Warned-by: clang static analyzer
Guillem Jover 12 years ago
parent
commit
20f855ab44
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main.c

+ 1 - 1
src/main.c

@@ -576,7 +576,7 @@ print_forceinfo(const struct forceinfo *fi)
   desc = m_strdup(gettext(fi->desc));
   desc = m_strdup(gettext(fi->desc));
 
 
   line = strtok(desc, "\n");
   line = strtok(desc, "\n");
-  print_forceinfo_line(fi->type, fi->name, desc);
+  print_forceinfo_line(fi->type, fi->name, line);
   while ((line = strtok(NULL, "\n")))
   while ((line = strtok(NULL, "\n")))
     print_forceinfo_line(' ', "", line);
     print_forceinfo_line(' ', "", line);