gas/
[deliverable/binutils-gdb.git] / gdb / printcmd.c
index 750244e4c85f3159f368d40bc99d277cdf8b52c1..8403d5fcffef119d7e15dfe71f4c2ec0bd282b1e 100644 (file)
@@ -1036,9 +1036,9 @@ sym_info (char *arg, int from_tty)
        /* Don't print the offset if it is zero.
           We assume there's no need to handle i18n of "sym + offset".  */
        if (offset)
-         xasprintf (&loc_string, "%s + %u", msym_name, offset);
+         loc_string = xstrprintf ("%s + %u", msym_name, offset);
        else
-         xasprintf (&loc_string, "%s", msym_name);
+         loc_string = xstrprintf ("%s", msym_name);
 
        /* Use a cleanup to free loc_string in case the user quits
           a pagination request inside printf_filtered.  */
This page took 0.023775 seconds and 4 git commands to generate.