Bläddra i källkod

d.rast.num: fix segfault due to uninitialized variable

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@60805 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 11 år sedan
förälder
incheckning
a19c5b39c3
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      display/d.rast.num/main.c

+ 1 - 1
display/d.rast.num/main.c

@@ -174,7 +174,7 @@ int main(int argc, char **argv)
 
     if ((nrows > 75) || (ncols > 75)) {
         G_asprintf(&tmpstr1, _n("%d row", "%d rows", nrows), nrows);
-        G_asprintf(&tmpstr1, _n("%d col", "%d cols", ncols), ncols);
+        G_asprintf(&tmpstr2, _n("%d col", "%d cols", ncols), ncols);
         /* GTC %s will be replaced by strings "X rows" and "Y cols" */
         G_warning(_("Current region size: %s X %s\n"
 		    "Your current region setting may be too large. "