Revision: 75442
          http://sourceforge.net/p/brlcad/code/75442
Author:   starseeker
Date:     2020-04-17 18:44:32 +0000 (Fri, 17 Apr 2020)
Log Message:
-----------
few more struct copies...

Modified Paths:
--------------
    brlcad/branches/dm-fb-merge/src/libdm/fb_generic.c

Modified: brlcad/branches/dm-fb-merge/src/libdm/fb_generic.c
===================================================================
--- brlcad/branches/dm-fb-merge/src/libdm/fb_generic.c  2020-04-17 18:42:25 UTC 
(rev 75441)
+++ brlcad/branches/dm-fb-merge/src/libdm/fb_generic.c  2020-04-17 18:44:32 UTC 
(rev 75442)
@@ -407,7 +407,6 @@
        /* No name given, check environment variable first.     */
        if ((file = (const char *)getenv("FB_FILE")) == NULL || *file == '\0') {
            /* None set, use first device as default */
-           *ifp = *(_if_list[0]);      /* struct copy */
            *ifp->i = *(_if_list[0]->i);        /* struct copy */
            file = ifp->i->if_name;
            goto found_interface;
@@ -446,13 +445,13 @@
     if (fb_totally_numeric(file) || strchr(file, ':') != NULL) {
        /* We have a remote file name of the form <host>:<file>
         * or a port number (which assumes localhost) */
-       *ifp = remote_interface;
+       *ifp->i = *remote_interface.i;
        goto found_interface;
     }
 #endif /* IF_REMOTE */
     /* Assume it's a disk file */
     if (_fb_disk_enable) {
-       *ifp = disk_interface;
+       *ifp->i = *disk_interface.i;
     } else {
        fb_log("fb_open: no such device \"%s\".\n", file);
        free((void *) ifp);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to