gdb: remove unnecessary NULL checks before xfree
[deliverable/binutils-gdb.git] / gdb / cli / cli-script.c
index c9d23789068d8110bb10d3f8d73559d6807fac40..90ee67a5f3d379b3197166249601e7e97b7f066b 100644 (file)
@@ -1528,8 +1528,7 @@ document_command (const char *comname, int from_tty)
   counted_command_line doclines = read_command_lines (prompt.c_str (),
                                                      from_tty, 0, 0);
 
-  if (c->doc)
-    xfree ((char *) c->doc);
+  xfree ((char *) c->doc);
 
   {
     struct command_line *cl1;
This page took 0.034269 seconds and 4 git commands to generate.