* some pointer magic to get rid of warnings
authorWilfried Göesgens <willi@citadel.org>
Mon, 25 Aug 2008 22:11:48 +0000 (22:11 +0000)
committerWilfried Göesgens <willi@citadel.org>
Mon, 25 Aug 2008 22:11:48 +0000 (22:11 +0000)
webcit/roomops.c

index 05a0ec4a2c00478631677f121e0f3fd08cb6adcd..400f7f64e01c0d9d2569207aea0642c70e895deb 100644 (file)
@@ -3189,10 +3189,12 @@ void do_rooms_view(struct folder *fold, int max_folders, int num_floors) {
  */
 void set_floordiv_expanded(void) {
        struct wcsession *WCC = WC;
+       StrBuf *FloorDiv;
        
-       WCC->floordiv_expanded = NewStrBuf();
-       StrBufAppendBuf(WCC->floordiv_expanded, WCC->UrlFragment1, 0);
-       set_preference("floordiv_expanded", WCC->floordiv_expanded, 1);
+       FloorDiv = NewStrBuf();
+       StrBufAppendBuf(FloorDiv, WCC->UrlFragment1, 0);
+       set_preference("floordiv_expanded", FloorDiv, 1);
+       WCC->floordiv_expanded = FloorDiv;
 }
 
 /**