]> Pileus Git - grits/blobdiff - src/gis/wms.c
Moving -Werror to gen.sh, improving wms_test
[grits] / src / gis / wms.c
index f62928de6d31c9c32f4ed8c12c4bce8799c0b1b2..51f69bc8ca8379189d134027cdf493b1f1bfab88 100644 (file)
@@ -478,7 +478,7 @@ void srtm_pixbuf_loader(WmsCacheNode *node, const gchar *path, gint width, gint
        gint       stride = gdk_pixbuf_get_rowstride(pixbuf);
 
        gint16 *data; 
-       gchar **char_data = (gchar**)char_data; 
+       gchar **char_data = (gchar**)&data; 
        g_file_get_contents(path, char_data, NULL, NULL);
        for (int r = 0; r < height; r++) {
                for (int c = 0; c < width; c++) {